inputLen may end up as 0 in the loop if the input string only includes trailing characters. e.g. without the patch, decode(" ") would panic. (cherry picked from commit 30cf570af9)
30cf570af9
nimPreviewSlimSystem
std/nre
InotifyEvent
sizeof
close
setFilePos
snprintf
sprintf
=dup