summaryrefslogtreecommitdiffstats
path: root/Src/math.c
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 /Src/math.c
parent36909: in getargs(), sanity-check the offsets for start and end of the reques... (diff)
downloadzsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.tar
zsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.tar.gz
zsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.tar.bz2
zsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.tar.lz
zsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.tar.xz
zsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.tar.zst
zsh-b970ef6ef50dc4e21a053ae673fe89fff5a3c52f.zip
unposted: strdup should be ztrdup
Diffstat (limited to 'Src/math.c')
-rw-r--r--Src/math.c2
1 files changed, 1 insertions, 1 deletions
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);