diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-04-14 17:44:04 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-15 00:44:37 +0000 |
commit | 0f3e20051c5be2d8164365763e63988a30aa24f4 (patch) | |
tree | 6d83bf1487cb2f7c008cfdf8b886a23990bf9951 /editcap.c | |
parent | ccef2d8860f55d56f7662cc218defe5447e226e4 (diff) | |
download | wireshark-0f3e20051c5be2d8164365763e63988a30aa24f4.tar.gz wireshark-0f3e20051c5be2d8164365763e63988a30aa24f4.tar.bz2 wireshark-0f3e20051c5be2d8164365763e63988a30aa24f4.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); |