git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0159f3c
)
From Jim Young:
author
etxrab
<etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 15 Oct 2012 08:40:43 +0000
(08:40 +0000)
committer
etxrab
<etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 15 Oct 2012 08:40:43 +0000
(08:40 +0000)
Have editcap use modulo when calculating filenum component of fileset name .
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7863
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@45556
f5534014
-38df-0310-8fa8-
9805f1628bb7
editcap.c
patch
|
blob
|
history
diff --git
a/editcap.c
b/editcap.c
index a75f85a2a665bd59fbf5b7d5d75f0e265ab92ea1..67d46bf899bb4915130afd39489f37992d164205 100644
(file)
--- a/
editcap.c
+++ b/
editcap.c
@@
-65,6
+65,8
@@
#include "svnversion.h"
+#include "ringbuffer.h" /* For RINGBUFFER_MAX_NUM_FILES */
+
/*
* Some globals so we can pass things to various routines
*/
@@
-179,7
+181,7
@@
fileset_get_filename_by_pattern(guint idx, const struct wtap_nstime *time_val
gchar *abs_str;
timestr = abs_time_to_str_with_sec_resolution(time_val);
- g_snprintf(filenum, sizeof(filenum), "%05u", idx);
+ g_snprintf(filenum, sizeof(filenum), "%05u", idx
% RINGBUFFER_MAX_NUM_FILES
);
abs_str = g_strconcat(fprefix, "_", filenum, "_", timestr, fsuffix, NULL);
g_free(timestr);