diff --git a/src/sbbs3/js_global.c b/src/sbbs3/js_global.c index aadd49cf5e7ad9311fa47b750e8b502f87593f57..6cfcc05e8dc8911ea2fb8824aa51e02a9fbb98e2 100644 --- a/src/sbbs3/js_global.c +++ b/src/sbbs3/js_global.c @@ -766,7 +766,7 @@ js_word_wrap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) /* Get prefix from the first line (ouch) */ l=0; i=0; - if(handle_quotes && (quote_count=get_prefix(inbuf, &prefix_bytes, &prefix_len, len*2+2))) { + if(handle_quotes && (quote_count=get_prefix(inbuf, &prefix_bytes, &prefix_len, len*2+2))!=0) { i+=prefix_bytes; if(prefix_len>len/3*2) { /* This prefix is insane (more than 2/3rds of the new width) hack it down to size */ @@ -798,7 +798,7 @@ js_word_wrap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) crcount++; break; case '\n': - if(handle_quotes && (quote_count=get_prefix(inbuf+i+1, &prefix_bytes, &prefix_len, len*2+2))) { + if(handle_quotes && (quote_count=get_prefix(inbuf+i+1, &prefix_bytes, &prefix_len, len*2+2))!=0) { /* Move the input pointer offset to the last char of the prefix */ i+=prefix_bytes; }