diff options
author | grant <grant> | 2004-07-25 05:40:08 +0000 |
---|---|---|
committer | grant <grant> | 2004-07-25 05:40:08 +0000 |
commit | 1dea4eed6417bb77f5eed13ee3951524f82278ca (patch) | |
tree | e356547dc087770b261c2fe792f64efcaa43a57e /textproc | |
parent | f4b99a515a0f0bf57b05dcd626ee2551c9918727 (diff) | |
download | pkgsrc-1dea4eed6417bb77f5eed13ee3951524f82278ca.tar.gz |
sync with src:
Yet another s/xmalloc/xrealloc/ so that large multi line text
can be added.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/nbsed/files/compile.c | 6 |
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)); |