diff options
-rw-r--r-- | wiretap/logcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/logcat.c b/wiretap/logcat.c index 6b148b8328..53fb2fec01 100644 --- a/wiretap/logcat.c +++ b/wiretap/logcat.c @@ -272,7 +272,7 @@ static gint buffered_detect_version(const guint8 *pd) /* if msg is '\0'-terminated, is it equal to the payload len? */ ++msg_part; - msg_len = log_entry->len - (msg_part - msg_payload); + msg_len = (guint16)(log_entry->len - (msg_part - msg_payload)); msg_end = (guint8 *) memchr(msg_part, '\0', msg_len); /* is the end of the buffer (-1) equal to the end of msg? */ if (msg_end && (msg_payload + log_entry->len - 1 != msg_end)) |