summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-01-29 08:13:37 +0100
committerWilliam Wilgus <me.theuser@yahoo.com>2018-05-27 17:55:10 +0200
commit0d41e13cf404ed8c75f78367eb0cd5153942a67f (patch)
tree4599169e547a8390050dff5012b1b03f4c8dc4f3 /firmware/target
parent1f63604e2ce522f531ae717b9f587cd58791b85f (diff)
downloadrockbox-0d41e13cf404ed8c75f78367eb0cd5153942a67f.tar.gz
rockbox-0d41e13cf404ed8c75f78367eb0cd5153942a67f.zip
Fix lua lseek command / io lib
lua would not return or set arbitrary file positions file:seek("set", 0) worked file:seek("cur") worked but setting an offset or file:seek("end") failed I tracked this down to a bug checking the return of rb->lseek on error lseek returns a negative number and returns the file position otherwise, the function was checking for if(N) instead of if(N < 0) Fixed - limited size of lseek to size of signed LuaNumber Fixed - io:lines() stopped after first line containing only a newline instead of returning a blank line and continuing till EOF this fixes file:read("*l") as well Fixed - ssize_t for read() with error checking Change-Id: Ie859b288fb8f6814f1b3ae30992ecf78f2669de7
Diffstat (limited to 'firmware/target')
0 files changed, 0 insertions, 0 deletions