summaryrefslogtreecommitdiff
path: root/drivemount/drive-button.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-05 19:25:22 +0200
committerraveit65 <[email protected]>2019-09-15 13:30:04 +0200
commitef3e818800d4676b9c4e10ab996b18dbdfbf439f (patch)
treeb38b61a466d1e9576592aa01799046cbf444c46f /drivemount/drive-button.c
parent92575c4932ec84cbfc228cad2e41525d69eac931 (diff)
downloadmate-applets-ef3e818800d4676b9c4e10ab996b18dbdfbf439f.tar.bz2
mate-applets-ef3e818800d4676b9c4e10ab996b18dbdfbf439f.tar.xz
drivemount: remove -Wformat-nonliteral warning
drive-button.c:618:6: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] 618 | gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), error->message, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'drivemount/drive-button.c')
-rw-r--r--drivemount/drive-button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivemount/drive-button.c b/drivemount/drive-button.c
index 3813c9a6..2d91c4de 100644
--- a/drivemount/drive-button.c
+++ b/drivemount/drive-button.c
@@ -615,7 +615,7 @@ open_drive (DriveButton *self, GtkWidget *item)
GTK_BUTTONS_OK,
_("Cannot execute Caja"));
if (error)
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), error->message, NULL);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error->message);
else
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "Could not find Caja");
g_signal_connect (dialog, "response",