sign-extending 8-bit characters.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12922
f5534014-38df-0310-8fa8-
9805f1628bb7
for (i = 0; i < nchars; i++) {
if (buffer[i] == '\n' || buffer[i] == '\r')
continue;
- if (! isprint(buffer[i])) {
+ if (! isprint((guchar)buffer[i])) {
buffer[i] = '.';
}
}
/* Routines to handle parsing a list of ports */
/* * * * * * * * * * * * * * * * * * * * * * * * */
-#define SKIPWHITE(_s) { while(isspace(*(_s))) { (_s)++; } }
+#define SKIPWHITE(_s) { while(isspace((guchar)*(_s))) { (_s)++; } }
/* insert error text in front of spec
* with a delimeter we can recognize on next attempt
SKIPWHITE(es);
- if (isdigit(*es))
+ if (isdigit((guchar)*es))
continue; /* a missig comma is OK */
switch(*es++) {