https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=16519
Chuck Craft <bubbas...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bubbas...@gmail.com
--- Comment #3 from Chuck Craft <bubbas...@gmail.com> ---
if (cap_duration) /* XXX - shorten to hh:mm:ss */
printf("Capture duration: %s\n",
relative_time_string(&cf_info->duration, cf_info->duration_tsprec, cf_info,
TRUE));
is calling:
relative_time_string(nstime_t *timer, int tsprecision, capture_info *cf_info,
gboolean want_seconds)
{
const gchar *second = want_seconds ? " second" : "";
const gchar *plural = want_seconds ? "s" : "";
static gchar time_string_buf[4+1+2+1+2+1+2+1+2+1+2+1+1];
Which has a buffer length of 21: 4+1+2+1+2+1+2+1+2+1+2+1+1 and truncates the
output string:
g_snprintf(time_string_buf, sizeof time_string_buf,
absolute_time_string(nstime_t *timer, int tsprecision, capture_info *cf_info)
{
static gchar time_string_buf[4+1+2+1+2+1+2+1+2+1+2+1+9+1+1];
Has a longer buffer length of 31: 4+1+2+1+2+1+2+1+2+1+2+1+9+1+1
--
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via: Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives: https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe