mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 01:17:04 +00:00
Fix snprintf warning
This commit is contained in:
parent
d1114f145a
commit
1c2bf72485
1 changed files with 2 additions and 2 deletions
|
@ -250,7 +250,7 @@ int ssl_expand_record(ssl,q,direction,data,len)
|
||||||
Data d;
|
Data d;
|
||||||
UINT4 ct,vermaj,vermin,length;
|
UINT4 ct,vermaj,vermin,length;
|
||||||
int version;
|
int version;
|
||||||
char verstr[4];
|
char verstr[8];
|
||||||
char enumstr[20];
|
char enumstr[20];
|
||||||
struct json_object *jobj;
|
struct json_object *jobj;
|
||||||
jobj = ssl->cur_json_st;
|
jobj = ssl->cur_json_st;
|
||||||
|
@ -272,7 +272,7 @@ int ssl_expand_record(ssl,q,direction,data,len)
|
||||||
P_(P_RH){
|
P_(P_RH){
|
||||||
explain(ssl," V%d.%d(%d)",vermaj,vermin,length);
|
explain(ssl," V%d.%d(%d)",vermaj,vermin,length);
|
||||||
json_object_object_add(jobj, "record_len", json_object_new_int(length));
|
json_object_object_add(jobj, "record_len", json_object_new_int(length));
|
||||||
snprintf(verstr,4,"%d.%d",vermaj,vermin);
|
snprintf(verstr,8,"%d.%d",vermaj,vermin);
|
||||||
json_object_object_add(jobj, "record_ver", json_object_new_string(verstr));
|
json_object_object_add(jobj, "record_ver", json_object_new_string(verstr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue