From: uz Date: Mon, 30 May 2011 21:37:34 +0000 (+0000) Subject: Fix problem with output of sprintf when %s format spec is used. X-Git-Tag: V2.13.3~431 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f2517269addc9b7088d4ce60076fe796bb9c2874;p=cc65 Fix problem with output of sprintf when %s format spec is used. git-svn-id: svn://svn.cc65.org/cc65/trunk@5029 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/nexttok.c b/src/ca65/nexttok.c index cadef8a84..77e0ec4ef 100644 --- a/src/ca65/nexttok.c +++ b/src/ca65/nexttok.c @@ -548,7 +548,7 @@ static void FuncSPrintF (void) } /* Format this argument according to the spec */ - SB_Printf (&R1, SB_GetConstBuf (&F1), CurTok.SVal); + SB_Printf (&R1, SB_GetConstBuf (&F1), SB_GetConstBuf (&CurTok.SVal)); /* Skip the string constant */ NextTok (); @@ -612,7 +612,7 @@ static void FuncSPrintF (void) } - + static void FuncString (void) /* Handle the .STRING function */ {