]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug in the return value of the sprintf and vsprintf functions
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 20 Oct 2001 15:23:34 +0000 (15:23 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 20 Oct 2001 15:23:34 +0000 (15:23 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1067 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/vsprintf.s

index e9e153c9802b8ba7e53cf8ebbc67d1d3c27ff55d..317987807d2bd6d07da6b01ad78c708c47908f66 100644 (file)
@@ -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