summaryrefslogtreecommitdiff
path: root/js/png.js
diff options
context:
space:
mode:
authortimb <opuscule@gmail.com>2015-07-18 12:50:53 -0700
committertimb <opuscule@gmail.com>2015-07-18 12:50:53 -0700
commit1a009fd877364f5c6616a381d39e33902201a298 (patch)
treeca6cbaefd4e1ae20c3b7d282c2d3a948a7193f82 /js/png.js
parent72020acbd471992e3090a6345ecb5cc739c2c3fe (diff)
return incomplete string rather than nothing
Diffstat (limited to 'js/png.js')
-rw-r--r--js/png.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/png.js b/js/png.js
index 3c165dc..df9960c 100644
--- a/js/png.js
+++ b/js/png.js
@@ -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){