aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-04-11 21:52:53 +0100
committerJoão Valverde <j@v6e.pt>2022-04-11 22:23:13 +0100
commit09696f17629a89349b40d2cdb2908bdb0cae365c (patch)
tree42a24863a4f37e602580351359ba6ec3ce2378de /tshark.c
parent2f02cd6e19ec8d0cfcb24942052ec133a183dbf3 (diff)
Try to fix a narrowing warning
"C:\Development\wsbuild64\Wireshark.sln" (default target) (1) -> "C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj.metaproj" (default target) (18) -> "C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj" (default target) (108) -> (ClCompile target) -> C:/Development/wireshark/epan/dfilter/scanner.l(463,54): warning C4267: '+=': conversion from 'size_t' to 'int ', possible loss of data [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj] C:/Development/wireshark/epan/dfilter/scanner.l(463,54): warning C4267: state->location.col_start += sta te->location.col_len; [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj] C:/Development/wireshark/epan/dfilter/scanner.l(463,54): warning C4267: ^ (compiling source file C:\Development\wsbuild64\epan\dfilter\scanner.c) [C:\Development\ws build64\epan\dfilter\dfilter.vcxproj]
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 09686ecefa..5e828fa471 100644
--- a/tshark.c
+++ b/tshark.c
@@ -627,7 +627,7 @@ _compile_dfilter(const char *text, dfilter_t **dfp, const char *caller)
cmdarg_err("%s", err_msg);
g_free(err_msg);
if (err_loc.col_start >= 0) {
- err_off = ws_strdup_error_offset(NULL, err_loc.col_start, err_loc.col_len);
+ err_off = ws_strdup_underline(NULL, err_loc.col_start, err_loc.col_len);
cmdarg_err_cont(" %s", expanded);
cmdarg_err_cont(" %s", err_off);
g_free(err_off);