Module Name: src
Committed By: christos
Date: Sat Jan 5 16:56:25 UTC 2019
Modified Files:
src/bin/csh: glob.c
Log Message:
put back x in xrealloc
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/bin/csh/glob.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/csh/glob.c
diff -u src/bin/csh/glob.c:1.30 src/bin/csh/glob.c:1.31
--- src/bin/csh/glob.c:1.30 Sat Jan 5 11:54:00 2019
+++ src/bin/csh/glob.c Sat Jan 5 11:56:25 2019
@@ -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 @@ globbrace(Char *s, Char *p, Char ***bl)
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];
}
}