]> git.sur5r.net Git - cc65/commitdiff
When replaying a token list, be sure to zero terminate the string attribute of
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 5 Jan 2011 10:47:32 +0000 (10:47 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 5 Jan 2011 10:47:32 +0000 (10:47 +0000)
a token.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4900 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/toklist.c

index 0f8062dccb93fc45b631b8ecf17a5095dce459ea..66847dcaca061b919bbdde8676cb1364d543c0a3 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2008, Ullrich von Bassewitz                                      */
+/* (C) 1998-2010, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -93,6 +93,7 @@ void TokSet (TokNode* T)
     WS   = T->WS;
     IVal = T->IVal;
     SB_Copy (&SVal, &T->SVal);
+    SB_Terminate (&SVal);
 }