summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-07-03 19:38:54 -0700
committerGuy Harris <guy@alum.mit.edu>2015-07-04 02:39:18 +0000
commitc6f41124af3ecc1b9accb734504de03b474e5172 (patch)
tree2a31c4b478fff9ef1263043cf686a210d1514444 /file.c
parentb8d96a45b763cd2e227b325dbc12e1f811b290b0 (diff)
downloadwireshark-c6f41124af3ecc1b9accb734504de03b474e5172.tar.gz
Do error checking on simple_error_message_box() calls and fix errors.
It's a printf-like routine, so give it the right declaration. Fix errors that this finds. Change-Id: I7e8c100ff9e16ba89743ce744cbf548aae705b77 Reviewed-on: https://code.wireshark.org/review/9487 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index ba60ccbed9..1183a169a2 100644
--- a/file.c
+++ b/file.c
@@ -760,7 +760,7 @@ cf_read(capture_file *cf, gboolean reloading)
case WTAP_ERR_DECOMPRESS:
simple_error_message_box(
- "The compressed capture file appears to be damaged or corrupt.\n",
+ "The compressed capture file appears to be damaged or corrupt.\n(%s)",
err_info != NULL ? err_info : "no information supplied");
g_free(err_info);
break;
@@ -5043,7 +5043,7 @@ cf_open_failure_alert_box(const char *filename, int err, gchar *err_info,
case WTAP_ERR_UNSUPPORTED:
/* Seen only when opening a capture file for reading. */
simple_error_message_box(
- "The file \"%s\" contains record data that Wireshark doesn't support.\n",
+ "The file \"%s\" contains record data that Wireshark doesn't support.\n"
"(%s)",
display_basename,
err_info != NULL ? err_info : "no information supplied");