From e1378c470f1b5269581185cf7b07e44601461b45 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Fri, 13 Oct 2006 11:18:01 +0000 Subject: [PATCH] Try to avoid the use of 'z' modifier in cases where it is not necessary - rather, cast the argument to int. In this case, the string is in a UDP packet and as such limited to 64k so its length can be safely represented in an int without truncation (besides, this is just a debugging message!) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45010 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f4de10bba5..44dc0c2b7c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4401,9 +4401,9 @@ static void parse_request(struct sip_request *req) else if (*c == '\n') { /* end of this line */ *c = '\0'; if (sipdebug && option_debug > 3) - ast_log(LOG_DEBUG, "%7s %2d [%3zd]: %s\n", + ast_log(LOG_DEBUG, "%7s %2d [%3d]: %s\n", req->headers < 0 ? "Header" : "Body", - i, strlen(dst[i]), dst[i]); + i, (int)strlen(dst[i]), dst[i]); if (ast_strlen_zero(dst[i]) && req->headers < 0) { req->headers = i; /* record number of header lines */ dst = req->line; /* start working on the body */