Files
pkgsrc-ng/x11/xtrans/patches/patch-ab
2014-11-05 12:41:07 +01:00

16 lines
515 B
Plaintext

$NetBSD: patch-ab,v 1.3 2013/11/08 13:10:16 wiz Exp $
--- Xtrans.c.orig 2013-11-03 02:10:11.000000000 +0000
+++ Xtrans.c
@@ -162,8 +162,8 @@ TRANS(SelectTransport) (const char *prot
protobuf[PROTOBUFSIZE-1] = '\0';
for (i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++)
- if (isupper (protobuf[i]))
- protobuf[i] = tolower (protobuf[i]);
+ if (isupper ((unsigned char)protobuf[i]))
+ protobuf[i] = tolower ((unsigned char)protobuf[i]);
/* Look at all of the configured protocols */