X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-print.c;h=32e8e7c32fe78cbe2e77117abccf2bae1bf7df94;hb=101c55a1af7998a009a5c88c20e30837bc1a9765;hp=1cd946260ff2b8cfcbf3a3b20458f3da84a5770c;hpb=54ebd8ea7dfdd53e36ef4e0cd0877d52dd95a8ad;p=sliver-openvswitch.git diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 1cd946260..32e8e7c32 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -603,7 +603,7 @@ ofp_print_phy_port(struct ds *string, const struct ofp_phy_port *port) memcpy(name, port->name, sizeof name); for (j = 0; j < sizeof name - 1; j++) { - if (!isprint(name[j])) { + if (!isprint((unsigned char) name[j])) { break; } }