Module: kamailio
Branch: master
Commit: 18972def7a21506088988c1011b8aa6f13e1b8a9
URL:
https://github.com/kamailio/kamailio/commit/18972def7a21506088988c1011b8aa6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-20T09:51:44+02:00
seas: proper print formater %.*s instead of %*.s
---
Modified: src/modules/seas/encode_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/18972def7a21506088988c1011b8aa6…
Patch:
https://github.com/kamailio/kamailio/commit/18972def7a21506088988c1011b8aa6…
---
diff --git a/src/modules/seas/encode_msg.c b/src/modules/seas/encode_msg.c
index 1a99c22e26..e496397888 100644
--- a/src/modules/seas/encode_msg.c
+++ b/src/modules/seas/encode_msg.c
@@ -324,7 +324,7 @@ int print_encoded_msg(FILE* fd,char *code,char *prefix)
fprintf(fd,"MESSAGE:\n[%.*s]\n",msglen,msg);
r=(i<100)?1:0;
if(r){
- fprintf(fd,"%sREQUEST CODE=%d==%.*s,URI=%.*s,VERSION=%*.s\n",prefix,i,
+ fprintf(fd,"%sREQUEST CODE=%d==%.*s,URI=%.*s,VERSION=%.*s\n",prefix,i,
payload[METHOD_CODE_IDX+1],&msg[payload[METHOD_CODE_IDX]],
payload[URI_REASON_IDX+1],&msg[payload[URI_REASON_IDX]],
payload[VERSION_IDX+1],&msg[payload[VERSION_IDX]]);