From 4ad8d51ab9a5f30766707768c3e709710d58e4c2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 18 Dec 2003 10:49:52 +0000 Subject: Apply 19308 (## on its own in arithmetic. 4.0.8 --- Src/utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/utils.c b/Src/utils.c index fafdd99d9..1d7d2e163 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3470,7 +3470,10 @@ getkeystring(char *s, int *len, int fromwhere, int *misc) } DPUTS(fromwhere == 4, "BUG: unterminated $' substitution"); *t = '\0'; - *len = t - buf; + if (fromwhere == 6) + *misc = 0; + else + *len = t - buf; return buf; } -- cgit 1.4.1