forked from osmocom/wireshark
Cast the values passed to the <ctype.h> macros so as to avoid
sign-extending 8-bit characters. svn path=/trunk/; revision=12922
This commit is contained in:
parent
90c434d5ac
commit
7e58bd88ca
|
@ -761,7 +761,7 @@ follow_print_text(char *buffer, int nchars, gboolean is_server _U_, void *arg)
|
|||
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] = '.';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4802,7 +4802,7 @@ getPDUenum(PDUprops *props, guint offset, guint cls, guint tag, guint value)
|
|||
/* 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
|
||||
|
@ -4875,7 +4875,7 @@ static GSList *parse_port_range(gchar *s, int len)
|
|||
|
||||
SKIPWHITE(es);
|
||||
|
||||
if (isdigit(*es))
|
||||
if (isdigit((guchar)*es))
|
||||
continue; /* a missig comma is OK */
|
||||
|
||||
switch(*es++) {
|
||||
|
|
Loading…
Reference in New Issue