From: uz Date: Thu, 8 Oct 2009 12:11:51 +0000 (+0000) Subject: Fixed some sloopy StrBuf coding. X-Git-Tag: V2.13.1~175 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58e8826da25283ddca42ba748aa3f789fd4003da;p=cc65 Fixed some sloopy StrBuf coding. git-svn-id: svn://svn.cc65.org/cc65/trunk@4347 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/scanstrbuf.c b/src/cc65/scanstrbuf.c index bb86c2e35..219377a76 100644 --- a/src/cc65/scanstrbuf.c +++ b/src/cc65/scanstrbuf.c @@ -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 */