Source-Changes-HG archive

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

[src/trunk]: src/bin/csh put back x in xrealloc



details:   https://anonhg.NetBSD.org/src/rev/aaf54743406c
branches:  trunk
changeset: 447256:aaf54743406c
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 05 16:56:25 2019 +0000

description:
put back x in xrealloc

diffstat:

 bin/csh/glob.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 18aee18e8a8f -r aaf54743406c bin/csh/glob.c
--- a/bin/csh/glob.c    Sat Jan 05 16:54:00 2019 +0000
+++ b/bin/csh/glob.c    Sat Jan 05 16:56:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: glob.c,v 1.30 2019/01/05 16:54:00 christos Exp $ */
+/* $NetBSD: glob.c,v 1.31 2019/01/05 16:56:25 christos Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)glob.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: glob.c,v 1.30 2019/01/05 16:54:00 christos Exp $");
+__RCSID("$NetBSD: glob.c,v 1.31 2019/01/05 16:56:25 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -197,7 +197,7 @@
                pl = pm + 1;
                if (vl == &nv[size]) {
                    size += GLOBSPACE;
-                   nv = realloc(nv, (size_t)size * sizeof(Char *));
+                   nv = xrealloc(nv, (size_t)size * sizeof(Char *));
                    vl = &nv[size - GLOBSPACE];
                }
            }



Home | Main Index | Thread Index | Old Index