From 03531ff379bd888990d4ac1ac9466c345c620706 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 24 Jul 2005 05:37:23 +0000 Subject: The parsing of \c in $foo[(pws:\c:)1] should treat \c as an unknown escape (resulting in a literal "c"), not remove the sequence (from a patch by Thorsten Dahlheimer). --- Src/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/params.c') diff --git a/Src/params.c b/Src/params.c index 354d8d941..2bcfb0890 100644 --- a/Src/params.c +++ b/Src/params.c @@ -1002,7 +1002,7 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w) goto flagerr; sav = *t; *t = '\0'; - sep = escapes ? getkeystring(s + 1, &waste, 1, &waste) : + sep = escapes ? getkeystring(s + 1, &waste, 3, NULL) : dupstring(s + 1); *t = sav; s = t; -- cgit 1.4.1