Browse Source

core: msg_parse minor 64bit warning fix

Andrei Pelinescu-Onciul 15 years ago
parent
commit
c0e9cb82ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      parser/msg_parser.c

+ 1 - 1
parser/msg_parser.c

@@ -348,7 +348,7 @@ int parse_headers(struct sip_msg* msg, hdr_flags_t flags, int next)
 		switch (hf->type){
 		switch (hf->type){
 			case HDR_ERROR_T:
 			case HDR_ERROR_T:
 				LOG(L_INFO,"ERROR: bad header field [%.*s]\n",
 				LOG(L_INFO,"ERROR: bad header field [%.*s]\n",
-					(end-tmp>20)?20:(end-tmp), tmp);
+					(end-tmp>20)?20:(int)(end-tmp), tmp);
 				goto  error;
 				goto  error;
 			case HDR_EOH_T:
 			case HDR_EOH_T:
 				msg->eoh=tmp; /* or rest?*/
 				msg->eoh=tmp; /* or rest?*/