]> git.sur5r.net Git - cc65/commitdiff
Fixed some sloopy StrBuf coding.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 8 Oct 2009 12:11:51 +0000 (12:11 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 8 Oct 2009 12:11:51 +0000 (12:11 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4347 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/scanstrbuf.c

index bb86c2e35f598bfb87d2fb4e4a8e5e6a73b59da5..219377a76ef621eb2f83de0c5123a53056257b56 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2002      Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2002-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -55,7 +55,7 @@
 static int ParseChar (StrBuf* B)
 /* Parse a character. Converts \n into EOL, etc. */
 {
-    unsigned I;       
+    unsigned I;
     unsigned Val;
     int C;
 
@@ -196,7 +196,7 @@ int SB_GetString (StrBuf* B, StrBuf* S)
     char C;
 
     /* Initialize S */
-    *S = AUTO_STRBUF_INITIALIZER;
+    SB_Init (S);
     if (SB_Peek (B) == '\"') {
 
         /* String follows, be sure to concatenate strings */