1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

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
This commit is contained in:
uz 2011-05-30 21:37:34 +00:00
parent c4492130c4
commit f2517269ad

View 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 */
{