Files
pkgsrc-ng/www/seamonkey/patches/patch-mozilla_js_src_jskwgen.cpp
2016-01-21 23:40:00 +01:00

14 lines
530 B
C++

$NetBSD: patch-mozilla_js_src_jskwgen.cpp,v 1.1 2015/03/17 19:50:42 ryoon Exp $
--- mozilla/js/src/jskwgen.cpp.orig 2015-03-09 05:34:39.000000000 +0000
+++ mozilla/js/src/jskwgen.cpp
@@ -181,7 +181,7 @@ qchar(char c, char *quoted_buffer)
*s++ = '\\';
break;
default:
- if (!isprint(c)) {
+ if (!isprint(((unsigned char)c))) {
*s++ = '\\';
*s++ = (char)('0' + (0x3 & (((unsigned char)c) >> 6)));
*s++ = (char)('0' + (0x7 & (((unsigned char)c) >> 3)));