diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-23 18:28:26 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-23 18:28:26 -0700 |
commit | 57331dbc8dbc8b88c29f1067a32d5631fda0bcc3 (patch) | |
tree | 30f45cb73396dab24630efa51ffd7fb941e366bc /src | |
parent | 5b300b8e00e089ad9c5eba04738632b39f9002a0 (diff) |
add missing coercion in strcat
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index daba0611..7fbe335d 100644 --- a/src/library.js +++ b/src/library.js @@ -4437,7 +4437,7 @@ LibraryManager.library = { strcat: function(pdest, psrc) { pdest = pdest|0; psrc = psrc|0; var i = 0; - pdest = (pdest + _strlen(pdest))|0; + pdest = (pdest + (_strlen(pdest)|0))|0; do { {{{ makeCopyValues('pdest+i', 'psrc+i', 1, 'i8', null, 1) }}}; i = (i+1)|0; |