Wireshark-commits: [Wireshark-commits] rev 33482: /trunk/plugins/unistim/ /trunk/plugins/unistim/:

Date: Fri, 09 Jul 2010 21:27:11 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=33482

User: guy
Date: 2010/07/09 02:27 PM

Log:
 The only reason to escape "%" in a string is if you are, incorrectly,
 passing a string directly to a routine that expects a format string. 
 The correct way to handle that is to pass "%s" as the string.
 
 As long as you're escaping non-printable characters, just let
 tvb_format_string() handle that.
 
 For null-terminated strings, get the length of the string with
 tvb_strsize(), and then just put the string into the protocol tree as a
 regular item.

Directory: /trunk/plugins/unistim/
  Changes    Path                Action
  +2 -0      network.h           Modified
  +21 -71    packet-unistim.c    Modified