]> git.sur5r.net Git - cc65/commitdiff
Fix problem with output of sprintf when %s format spec is used.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 30 May 2011 21:37:34 +0000 (21:37 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 30 May 2011 21:37:34 +0000 (21:37 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5029 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/nexttok.c

index cadef8a84cbe43fc221e6ab788c0d130c98a061e..77e0ec4efe60b3913925cb26d86e21f9570c8ceb 100644 (file)
@@ -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 */
 {