diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-09-01 16:59:40 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-09-01 16:59:40 -0700 |
commit | 0c06bf1dab6627b6171fe2a486e9793b855325c0 (patch) | |
tree | d63b83eb0b8ea1564559525121ed4c9240600080 /smbutil.c | |
parent | a96b0d21749d42eecf6d92121788ee3131eb8613 (diff) | |
download | tcpdump-0c06bf1dab6627b6171fe2a486e9793b855325c0.tar.gz |
Squelch a compiler warning.
Diffstat (limited to 'smbutil.c')
-rw-r--r-- | smbutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -422,7 +422,7 @@ unistr(netdissect_options *ndo, char (*buf)[MAX_UNISTR_SIZE+1], if (l < MAX_UNISTR_SIZE) { if (ND_ASCII_ISPRINT(c)) { /* It's a printable ASCII character */ - (*buf)[l] = c; + (*buf)[l] = (char)c; } else { /* It's a non-ASCII character or a non-printable ASCII character */ (*buf)[l] = '.'; @@ -454,7 +454,7 @@ unistr(netdissect_options *ndo, char (*buf)[MAX_UNISTR_SIZE+1], if (l < MAX_UNISTR_SIZE) { if (ND_ASCII_ISPRINT(c)) { /* It's a printable ASCII character */ - (*buf)[l] = c; + (*buf)[l] = (char)c; } else { /* It's a non-ASCII character or a non-printable ASCII character */ (*buf)[l] = '.'; |