summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Fontana <sick_soul@users.sourceforge.net>2006-10-19 13:00:09 +0000
committerClaudio Fontana <sick_soul@users.sourceforge.net>2006-10-19 13:00:09 +0000
commit097283714e52b370eff9c68d5ced2ea254962f32 (patch)
treef7c500f9054609fc6ffa8a1bdeacccc800cc83ef
parente679e66c705e6564b6690e37daacd5a89e0ffcc0 (diff)
downloadidutils-097283714e52b370eff9c68d5ced2ea254962f32.tar.gz
idutils-097283714e52b370eff9c68d5ced2ea254962f32.tar.bz2
idutils-097283714e52b370eff9c68d5ced2ea254962f32.zip
* fix lisp string parsing
-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;