diff options
| author | timb <opuscule@gmail.com> | 2015-07-18 12:50:53 -0700 |
|---|---|---|
| committer | timb <opuscule@gmail.com> | 2015-07-18 12:50:53 -0700 |
| commit | 1a009fd877364f5c6616a381d39e33902201a298 (patch) | |
| tree | ca6cbaefd4e1ae20c3b7d282c2d3a948a7193f82 /js | |
| parent | 72020acbd471992e3090a6345ecb5cc739c2c3fe (diff) | |
return incomplete string rather than nothing
Diffstat (limited to 'js')
| -rw-r--r-- | js/png.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -173,7 +173,8 @@ var read_cstring = function(u8, pos){ if (u8[pos] === 0) return str str += String.fromCharCode(u8[pos]) pos++ - } + } + return str } var decode_itxt_chunk = function(chunk){ |
