Commit 00269e19 authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Simplified a few strings

parent 52fcdcf1
......@@ -686,10 +686,10 @@ static void dump_basic_type(union avp_value * value, enum dict_avp_basetype type
unsigned char buf[8];
memset(buf, 0, sizeof(buf));
memcpy(buf, value->os.data, value->os.len < sizeof(buf) ? value->os.len : sizeof(buf) );
DUMP_VALUE("l:%d, v:%02.2X %02.2X %02.2X %02.2X %02.2X %02.2X %02.2X %02.2X ... ('%-*.*s')",
DUMP_VALUE("l:%d, v:%02.2X %02.2X %02.2X %02.2X %02.2X %02.2X %02.2X %02.2X ... ('%.*s')",
value->os.len,
buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7],
value->os.len, value->os.len, value->os.data
value->os.len, value->os.data
);
}
break;
......
......@@ -361,7 +361,7 @@ int fd_sess_new ( struct session ** session, char * diamId, char * opt, size_t o
if (opt) {
if (optlen)
sidlen = snprintf(sid, sidlen, "%s;%u;%u;%*.*s", diamId, sid_h, sid_l, optlen, optlen, opt);
sidlen = snprintf(sid, sidlen, "%s;%u;%u;%.*s", diamId, sid_h, sid_l, optlen, opt);
else
sidlen = snprintf(sid, sidlen, "%s;%u;%u;%s", diamId, sid_h, sid_l, opt);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment