summaryrefslogtreecommitdiff
path: root/smbutil.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-09-01 16:59:40 -0700
committerGuy Harris <guy@alum.mit.edu>2019-09-01 16:59:40 -0700
commit0c06bf1dab6627b6171fe2a486e9793b855325c0 (patch)
treed63b83eb0b8ea1564559525121ed4c9240600080 /smbutil.c
parenta96b0d21749d42eecf6d92121788ee3131eb8613 (diff)
downloadtcpdump-0c06bf1dab6627b6171fe2a486e9793b855325c0.tar.gz
Squelch a compiler warning.
Diffstat (limited to 'smbutil.c')
-rw-r--r--smbutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smbutil.c b/smbutil.c
index 92c3f42a..52ffed4c 100644
--- a/smbutil.c
+++ b/smbutil.c
@@ -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] = '.';