diff options
Diffstat (limited to 'Src/math.c')
-rw-r--r-- | Src/math.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Src/math.c b/Src/math.c index a3609d429..ce685e2db 100644 --- a/Src/math.c +++ b/Src/math.c @@ -396,7 +396,7 @@ zzlex(void) } if (iident(*ptr)) { int func = 0; - char *p, q; + char *p; p = ptr; while (iident(*++ptr)); @@ -413,10 +413,7 @@ zzlex(void) ptr++; } } - q = *ptr; - *ptr = '\0'; - yylval = dupstring(p); - *ptr = q; + yylval = dupstrpfx(p, ptr - p); return (func ? FUNC : (cct ? CID : ID)); } else if (cct) { |