aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-14 17:44:04 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-15 00:44:37 +0000
commit0f3e20051c5be2d8164365763e63988a30aa24f4 (patch)
tree6d83bf1487cb2f7c008cfdf8b886a23990bf9951 /editcap.c
parentccef2d8860f55d56f7662cc218defe5447e226e4 (diff)
Fix parsing of packet ranges.
Replace the dash in a range with a '\0', so that the first value in the range is properly terminated. Change-Id: Ib2807c2534c1e99e643848ca0fc32f4b78025ce3 Reviewed-on: https://code.wireshark.org/review/21099 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editcap.c b/editcap.c
index 4716ec3087..7d1e2a40c5 100644
--- a/editcap.c
+++ b/editcap.c
@@ -302,6 +302,7 @@ add_selection(char *sel, guint* max_selection)
if (verbose)
fprintf(stderr, "Inclusive ...");
+ *locn = '\0'; /* split the range */
next = locn + 1;
selectfrm[max_selected].inclusive = TRUE;
selectfrm[max_selected].first = get_guint32(sel, "beginning of packet range");