Permalink
Browse files

Tokenizer would crash when the root token was a separator (';'). Now …

…it's

treated like plain text.
  • Loading branch information...
kvance
kvance committed Nov 26, 2006
1 parent a4f6714 commit a82e46ee36b880e879fd260b84ddc7c79f0c3113
Showing with 10 additions and 6 deletions.
  1. +7 −4 AUTHORS
  2. +3 −2 src/libzzt2/zztoop.c
View
11 AUTHORS
@@ -11,11 +11,14 @@ Another bug was found by:
Elchonon Edelson <ene@vasco.com>
DOS Music playback adapted from code by:
- Jacob Hammond <zig16@hotmail.com>
- WeP <wep@planetzztpp.com>
+ Jacob Hammond <zig16@hotmail.com>
+ WeP <wep@planetzztpp.com>
Some documentation written by:
- Chronos <chronos30@aol.com>
+ Chronos <chronos30@aol.com>
SDL textmode emulation originally written by:
- Gilead ``Exophase'' Kutnick <exophase@earthlink.net>
+ Gilead ``Exophase'' Kutnick <exophase@earthlink.net>
+
+Tokenizer ';' crash bug reported by:
+ ``Thor Gonzales'' <gingermuffins@yahoo.ca>
View
@@ -1,5 +1,5 @@
/* zztoop - zzt oop parser */
-/* $Id: zztoop.c,v 1.3 2005/05/28 03:17:45 bitman Exp $ */
+/* $Id: zztoop.c,v 1.4 2006/11/26 21:44:00 kvance Exp $ */
/* Copyright (C) 2002 Ryan Phillips <bitman@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
@@ -305,7 +305,8 @@ void zztoopParseRoot(ZZTOOPparser * parser)
break;
case ZOOPTOK_TEXT:
- /* It's just text */
+ case ZOOPTOK_SEPARATOR:
+ /* It's just text (so is an initial separator). */
zztoopAddRemainder(parser, ZOOPTYPE_TEXT, ZOOPTEXT_NORMAL);
break;

0 comments on commit a82e46e

Please sign in to comment.