Debian Codegraph @

utils/xpdfopen/TLpatches/patch-01-unsigned

raw
1 Avoid undefined behavior when char is signed.
2
3 diff -ur xpdfopen-0.86.orig/sendx.c xpdfopen-0.86/sendx.c
4 --- xpdfopen-0.86.orig/sendx.c 2012-01-28 01:39:39.000000000 +0100
5 +++ xpdfopen-0.86/sendx.c 2014-06-18 08:13:50.000000000 +0200
6 @@ -229,7 +229,7 @@
7 */
8 if (ks < 256)
9 {
10 - event.state = isupper((char)ks);
11 + event.state = isupper((unsigned char)ks);
12 switch (ks)
13 {
14 case 0x08: