diff --git a/redirector.c b/redirector.c index f425aff..40aca45 100644 --- a/redirector.c +++ b/redirector.c @@ -815,7 +815,7 @@ int main (int argc, char **argv) sequence_dat_rx = msg_in->seqnum_dat + msg_in->pktlen; if ((i - sizeof(struct s_msg)) < msg_in->pktlen) { - syslog(LOG_WARNING, "Short read! (%d vs %d bytes) truncating\n", msg_in->pktlen, i - sizeof(struct s_msg)); + syslog(LOG_WARNING, "Short read! (%d vs %d bytes) truncating\n", msg_in->pktlen, (int) (i - sizeof(struct s_msg))); msg_in->pktlen = i - sizeof(struct s_msg); }