From: cuz Date: Sat, 20 Oct 2001 15:23:34 +0000 (+0000) Subject: Fixed a bug in the return value of the sprintf and vsprintf functions X-Git-Tag: V2.12.0~2533 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=40a9055be8f6f6ac81b35bf313bd9194c1bf2110;p=cc65 Fixed a bug in the return value of the sprintf and vsprintf functions git-svn-id: svn://svn.cc65.org/cc65/trunk@1067 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/vsprintf.s b/libsrc/common/vsprintf.s index e9e153c98..317987807 100644 --- a/libsrc/common/vsprintf.s +++ b/libsrc/common/vsprintf.s @@ -152,14 +152,10 @@ _vsprintf: tya sta (ptr1),y -; Return the number of bytes written. The carry is clear here because of the -; last addition which will never overflow for sane code. +; Return the number of bytes written. lda outdesc ; ccount ldx outdesc+1 - adc #1 ; Account for terminator - bcc @L9 - inx -@L9: rts + rts