summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--file.c4
-rw-r--r--ui/simple_dialog.h2
2 files changed, 3 insertions, 3 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");
diff --git a/ui/simple_dialog.h b/ui/simple_dialog.h
index cd42c7a074..ed4139a8a3 100644
--- a/ui/simple_dialog.h
+++ b/ui/simple_dialog.h
@@ -125,7 +125,7 @@ extern void vsimple_error_message_box(const char *msg_format, va_list ap);
/*
* Error alert box, taking a format and a list of arguments.
*/
-extern void simple_error_message_box(const char *msg_format, ...);
+extern void simple_error_message_box(const char *msg_format, ...) G_GNUC_PRINTF(1, 2);
#ifdef __cplusplus
}