Wireshark-commits: [Wireshark-commits] rev 28044: /trunk/epan/ /trunk/epan/: emem.c emem.h

Date: Tue, 14 Apr 2009 14:08:23 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=28044

User: wmeier
Date: 2009/04/14 07:08 AM

Log:
 ep_strbuf: fix some bugs and additional changes
 -Bugs
   * str->len not set correctly in some cases;
   * trailing '\0' not always accounted for;
   * (issues relating to determining when & how much 
      to expand string buffer).
 -Other
   * Change append, append_c, truncate to return 
     pointer to ep_strbuf (similar to the corresponding
     GString functions);
   * Rename certain variables to clarify usage (as I understand
     the intended usage);
   * ep_strbuf_grow: use current allocated length and not current
     string length as the starting point;
   * Optimizations;
   * Add some additional comments to emem.h ep_strbuf section
 
   * Use consistent indentation throughout emem.c;

Directory: /trunk/epan/
  Changes    Path          Action
  +174 -123  emem.c        Modified
  +22 -14    emem.h        Modified