]> git.sur5r.net Git - cc65/commitdiff
fix uninitialized use of 'buflen' 84/head
authorChristian Groessler <chris@groessler.org>
Wed, 19 Feb 2014 21:38:57 +0000 (22:38 +0100)
committerChristian Groessler <chris@groessler.org>
Wed, 19 Feb 2014 21:39:39 +0000 (22:39 +0100)
libsrc/atari/read.s

index acb415efd319330642a1ec87f8024f679fae5bfc..f8d10fd15831fd17a466ea0432d36cfbd59109a7 100644 (file)
@@ -48,13 +48,13 @@ _inviocb:
         .segment        "EXTZP" : zeropage
 
 index:  .res    1               ; index into line buffer
-buflen: .res    1               ; length of used part of buffer
 cbs:    .res    1               ; current buffer size: buflen - index
 dataptr:.res    2               ; temp pointer to user buffer
 copylen:.res    1               ; temp counter
 
         .bss
 
+buflen: .res    1               ; length of used part of buffer
 linebuf:.res    LINEBUF         ; the line buffer
 
         .code