Use string format argument.

svn path=/trunk/; revision=26784
This commit is contained in:
Stig Bjørlykke 2008-11-15 15:51:26 +00:00
parent 0b297c0215
commit 0342e89148
1 changed files with 2 additions and 2 deletions

View File

@ -97,9 +97,9 @@ static void dissect_user(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree) {
if (!encap) {
char* msg = ep_strdup_printf("User encapsulation not handled: DLT=%d, check your Preferences->Protocols->DLT_USER",
pinfo->match_port + 147 - WTAP_ENCAP_USER0);
proto_item* item = proto_tree_add_text(tree, tvb, 0, 0, msg);
proto_item* item = proto_tree_add_text(tree, tvb, 0, 0, "%s", msg);
expert_add_info_format(pinfo, item, PI_UNDECODED, PI_WARN, msg);
expert_add_info_format(pinfo, item, PI_UNDECODED, PI_WARN, "%s", msg);
call_dissector(data_handle, tvb, pinfo, tree);
return;