summaryrefslogtreecommitdiff
path: root/textproc/nbsed
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-07-25 05:40:08 +0000
committergrant <grant@pkgsrc.org>2004-07-25 05:40:08 +0000
commitb7d0e6c6d8c62754651645ec9337220cf74a99aa (patch)
treee356547dc087770b261c2fe792f64efcaa43a57e /textproc/nbsed
parent375c98944108a7e4af3188ff65e2d2d0804e4125 (diff)
downloadpkgsrc-b7d0e6c6d8c62754651645ec9337220cf74a99aa.tar.gz
sync with src:
Yet another s/xmalloc/xrealloc/ so that large multi line text can be added.
Diffstat (limited to 'textproc/nbsed')
-rw-r--r--textproc/nbsed/files/compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/textproc/nbsed/files/compile.c b/textproc/nbsed/files/compile.c
index 72cc49913ee..68798d9dae6 100644
--- a/textproc/nbsed/files/compile.c
+++ b/textproc/nbsed/files/compile.c
@@ -1,4 +1,4 @@
-/* $NetBSD: compile.c,v 1.4 2004/06/13 13:09:34 grant Exp $ */
+/* $NetBSD: compile.c,v 1.5 2004/07/25 05:40:08 grant Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -77,7 +77,7 @@
#if 0
static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: compile.c,v 1.4 2004/06/13 13:09:34 grant Exp $");
+__RCSID("$NetBSD: compile.c,v 1.5 2004/07/25 05:40:08 grant Exp $");
#endif
#endif /* not lint */
@@ -709,7 +709,7 @@ compile_text(void)
}
if (asize - size < _POSIX2_LINE_MAX + 1) {
asize *= 2;
- text = xmalloc(asize);
+ text = xrealloc(text, asize);
}
}
return (xrealloc(text, size + 1));