summaryrefslogtreecommitdiff
path: root/textproc/nbsed/files
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
commit9c376da5babd04461873e1b338c1ee70fd4cd93c (patch)
treee356547dc087770b261c2fe792f64efcaa43a57e /textproc/nbsed/files
parentc379f4f3de96eb3543cd22c8e32d2eb3a27b30bd (diff)
downloadpkgsrc-9c376da5babd04461873e1b338c1ee70fd4cd93c.tar.gz
sync with src:
Yet another s/xmalloc/xrealloc/ so that large multi line text can be added.
Diffstat (limited to 'textproc/nbsed/files')
-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));