Module: kamailio
Branch: master
Commit: fce806b5715286fa15148bbb8117ff3b9b4d0897
URL:
https://github.com/kamailio/kamailio/commit/fce806b5715286fa15148bbb8117ff3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-20T09:50:27+02:00
kazoo: proper print formater %.*s instead of %*.s
---
Modified: src/modules/kazoo/kz_amqp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fce806b5715286fa15148bbb8117ff3…
Patch:
https://github.com/kamailio/kamailio/commit/fce806b5715286fa15148bbb8117ff3…
---
diff --git a/src/modules/kazoo/kz_amqp.c b/src/modules/kazoo/kz_amqp.c
index 15d5b259a1..c7088a3c71 100644
--- a/src/modules/kazoo/kz_amqp.c
+++ b/src/modules/kazoo/kz_amqp.c
@@ -1340,7 +1340,7 @@ int kz_amqp_async_query_ex(struct sip_msg* msg, char* _exchange,
char* _routing_
json_obj = json_tokener_parse(json_s.s);
if (json_obj==NULL) {
- LM_ERR("empty or invalid JSON payload : %*.s\n", json_s.len, json_s.s);
+ LM_ERR("empty or invalid JSON payload : %.*s\n", json_s.len, json_s.s);
goto error;
}
@@ -1499,7 +1499,7 @@ int kz_amqp_query_ex(struct sip_msg* msg, char* exchange, char*
routing_key, cha
struct json_object *j = json_tokener_parse(json_s.s);
if (j==NULL) {
- LM_ERR("empty or invalid JSON payload : %*.s\n", json_s.len, json_s.s);
+ LM_ERR("empty or invalid JSON payload : %.*s\n", json_s.len, json_s.s);
return -1;
}