summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--libidu/scanners.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f1d9af6..9dadec0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-19 Claudio Fontana <claudio@gnu.org>
+
+ * libidu/scanners.c (get_token_lisp): (tiny) fix bug in double
+ quoted string parsing (fix provided by Walter Sosa).
+
2006-08-22 Claudio Fontana <claudio@gnu.org>
* doc/idutils.texi: fix wrong example .emacs entry, where
diff --git a/libidu/scanners.c b/libidu/scanners.c
index b0b0b31..c9785c1 100644
--- a/libidu/scanners.c
+++ b/libidu/scanners.c
@@ -1632,14 +1632,14 @@ get_token_lisp (FILE *in_FILE, void const *args, int *flags)
} while ( (c != EOF) && (c != '\n'));
goto top;
- case '"': /* string with or without ansi-C escapes */
+ case '"': /* string with/without ansi-C escapes*/
string:
do {
c = getc (in_FILE);
if (c == '\\')
{
c = getc (in_FILE);
- continue;
+ goto string;
}
} while ( (c != EOF) && (c != '"'));
goto top;