From f2517269addc9b7088d4ce60076fe796bb9c2874 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 30 May 2011 21:37:34 +0000 Subject: [PATCH] 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 --- src/ca65/nexttok.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ { -- 2.39.5