Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan proto.c

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 31 Dec 2002 15:37:30 -0600 (CST)
guy         2002/12/31 15:37:30 CST

  Modified files:
    epan                 proto.c 
  Log:
  From Ronald Henderson: fix up "snprintf()" and "vsnprintf()" calls in
  "epan/proto.c" to properly handle string truncation (by checking both
  for -1 and a value larger than the buffer size as an indication of
  truncation, as some older versions of those routines return -1, and, if
  the string was truncated, putting in a trailing '\0', as "snprintf()" on
  some platforms might not put the trailing '\0' in).
  
  Revision  Changes    Path
  1.79      +91 -27    ethereal/epan/proto.c