From: Dmitry V. Levin Date: Sun, 22 Nov 2015 23:07:52 +0000 (+0000) Subject: net: fix printing of IP_RECVOPTS/IP_RETOPTS cmsg options X-Git-Tag: v4.11~127 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a17f593e508ccab2e92032ef9ee5518d79379641;p=strace net: fix printing of IP_RECVOPTS/IP_RETOPTS cmsg options * net.c (print_cmsg_ip_opts): Print each byte as unsigned char. --- diff --git a/net.c b/net.c index 85c46ee7..4d2f837f 100644 --- a/net.c +++ b/net.c @@ -421,7 +421,7 @@ static void print_cmsg_ip_opts(struct tcb *tcp, const void *cmsg_data, const size_t data_len) { - const char *opts = cmsg_data; + const unsigned char *opts = cmsg_data; size_t i; if (!data_len)