pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/nbsed/files sync with src:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/161e40bffb44
branches:  trunk
changeset: 478524:161e40bffb44
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Jul 25 05:40:08 2004 +0000

description:
sync with src:

Yet another s/xmalloc/xrealloc/ so that large multi line text
can be added.

diffstat:

 textproc/nbsed/files/compile.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1970f68dc054 -r 161e40bffb44 textproc/nbsed/files/compile.c
--- a/textproc/nbsed/files/compile.c    Sun Jul 25 04:57:11 2004 +0000
+++ b/textproc/nbsed/files/compile.c    Sun Jul 25 05:40:08 2004 +0000
@@ -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 @@
                }
                if (asize - size < _POSIX2_LINE_MAX + 1) {
                        asize *= 2;
-                       text = xmalloc(asize);
+                       text = xrealloc(text, asize);
                }
        }
        return (xrealloc(text, size + 1));



Home | Main Index | Thread Index | Old Index