From 9fe0077305b9f92a10f6a2f29d7fa1331a551509 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 9 Feb 2010 13:58:11 +0000 Subject: Geoff: 27693: rename underscore to avoid name clash --- Src/exec.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 06ff8e30f..02887e1aa 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -2191,17 +2191,17 @@ setunderscore(char *str) int l = strlen(str) + 1, nl = (l + 31) & ~31; if (nl > underscorelen || (underscorelen - nl) > 64) { - zfree(underscore, underscorelen); - underscore = (char *) zalloc(underscorelen = nl); + zfree(zunderscore, underscorelen); + zunderscore = (char *) zalloc(underscorelen = nl); } - strcpy(underscore, str); + strcpy(zunderscore, str); underscoreused = l; } else { if (underscorelen > 128) { - zfree(underscore, underscorelen); - underscore = (char *) zalloc(underscorelen = 32); + zfree(zunderscore, underscorelen); + zunderscore = (char *) zalloc(underscorelen = 32); } - *underscore = '\0'; + *zunderscore = '\0'; underscoreused = 1; } } @@ -4506,7 +4506,7 @@ runshfunc(Eprog prog, FuncWrap wrap, char *name) ou = zalloc(ouu = underscoreused); if (ou) - memcpy(ou, underscore, underscoreused); + memcpy(ou, zunderscore, underscoreused); while (wrap) { wrap->module->wrapper++; @@ -4750,7 +4750,7 @@ execsave(void) es->traplocallevel = traplocallevel; es->noerrs = noerrs; es->subsh_close = subsh_close; - es->underscore = ztrdup(underscore); + es->underscore = ztrdup(zunderscore); es->next = exstack; exstack = es; noerrs = cmdoutpid = 0; -- cgit 1.4.1