about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-10-21 15:13:45 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-10-21 15:13:45 -0700
commitb970ef6ef50dc4e21a053ae673fe89fff5a3c52f (patch)
treefdbb5d4d1372ebfaa65f9cfc2e65453e05a2d544
parent5cb75f0d4114f83a7cf072ff8201445ae721f8c6 (diff)
downloadzsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.tar.gz
zsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.tar.xz
zsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.zip
unposted: strdup should be ztrdup
-rw-r--r--ChangeLog2
-rw-r--r--Src/math.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e40242eb8..e383ab9b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-10-21  Barton E. Schaefer  <schaefer@zsh.org>
 
+	* unposted: Src/math.c: strdup should be ztrdup
+
 	* 36909: Src/hist.c: in getargs(), sanity-check the offsets for
 	start and end of the requested words, in case of overflow
 
diff --git a/Src/math.c b/Src/math.c
index 56565a629..eee21e146 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -535,7 +535,7 @@ lexconstant(void)
 	for (ptr2 = ptr; ptr2 < nptr; ptr2++) {
 	    if (*ptr2 == '_') {
 		int len = nptr - ptr;
-		ptr = strdup(ptr);
+		ptr = ztrdup(ptr);
 		for (ptr2 = ptr; len; len--) {
 		    if (*ptr2 == '_')
 			chuck(ptr2);