Ethereal-users: [ethereal-users] Small bug

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

From: Christopher McAvaney <chrismc@xxxxxxxxxxxxx>
Date: Thu, 02 Dec 1999 12:15:17 +1100
G'day,
I have discovered a small bug in the function format_text() in packet.c
There is a line (around 437) that does a strcpy(fmtbufp, " ...");
But the fmtbufp pointer isn't incremented on, so when the NULL is
inserted at the end of the loop, the elipses is lost.
I have put fmtbufp += 4; just after the strcpy in my version and it
works fine.

Cheers,
Christopher
-- 
  _--_|\   Christopher McAvaney          e-mail: chrismc@xxxxxxxxxxxxx
 /      \  BSc (hons) - Computer Science         c.mcavaney@xxxxxxxxxxxx
 \_.--.*/  Deakin University                    
c.mcavaney@<ieee|acm>.org
       v   Geelong, Victoria, Australia 
http://www.cm.deakin.edu.au/~chrismc