From 45424e735d3c5aac5cf1171acb3a7c8047255ca0 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Mon, 10 Aug 2015 12:55:56 -0700 Subject: 36084: use zrealloc() consistently --- Src/glob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/glob.c') diff --git a/Src/glob.c b/Src/glob.c index f82c3bd30..3af46904d 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -257,7 +257,7 @@ addpath(char *s, int l) { DPUTS(!pathbuf, "BUG: pathbuf not initialised"); while (pathpos + l + 1 >= pathbufsz) - pathbuf = realloc(pathbuf, pathbufsz *= 2); + pathbuf = zrealloc(pathbuf, pathbufsz *= 2); while (l--) pathbuf[pathpos++] = *s++; pathbuf[pathpos++] = '/'; -- cgit 1.4.1