Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-gsm_sms.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Sat, 13 Dec 2003 17:55:29 -0600 (CST)
guy         2003/12/13 17:55:29 CST

  Modified files:
    .                    packet-gsm_sms.c 
  Log:
  "wctomb()" doesn't necessarily accept Unicode as input, and may produce
  more than one character as output.  Use "tvb_fake_unicode()" to handle
  Unicode strings, instead.
  
  Don't hand strings to "proto_tree_add_text()" - it expects a
  printf-style formatting operator, which means it'd treat "%" specially.
  Use "%s", or "%.*s", instead; use "%.*s" when we don't know that the
  string is null-terminated.
  
  Revision  Changes    Path
  1.7       +8 -47     ethereal/packet-gsm_sms.c