[brasero] Fix printf format string handling, bug 661091
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Fix printf format string handling, bug 661091
- Date: Thu, 20 Oct 2011 18:46:28 +0000 (UTC)
commit 9c696d0e72bf2a105750fba9efb01518a958efce
Author: Jean Schurger <jean schurger org>
Date: Thu Oct 20 20:42:20 2011 +0200
Fix printf format string handling, bug 661091
Without this patch, Brasero fails to build if GCC has
-Werror=format-security enabled.
plugins/libburnia/burn-libisofs.c | 4 ++--
plugins/transcode/burn-transcode.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/libburnia/burn-libisofs.c b/plugins/libburnia/burn-libisofs.c
index 7d95a8f..22cb75e 100644
--- a/plugins/libburnia/burn-libisofs.c
+++ b/plugins/libburnia/burn-libisofs.c
@@ -219,7 +219,7 @@ brasero_libisofs_write_image_to_fd_thread (BraseroLibisofs *self)
if (read_bytes == -1 && !priv->error)
priv->error = g_error_new (BRASERO_BURN_ERROR,
BRASERO_BURN_ERROR_GENERAL,
- _("Volume could not be created"));
+ "%s", _("Volume could not be created"));
}
static void
@@ -567,7 +567,7 @@ brasero_libisofs_create_volume_thread (gpointer data)
brasero_job_get_data_label (BRASERO_JOB (self), &label);
if (!iso_image_new (label, &image)) {
priv->error = g_error_new (BRASERO_BURN_ERROR,
- BRASERO_BURN_ERROR_GENERAL,
+ BRASERO_BURN_ERROR_GENERAL, "%s",
_("Volume could not be created"));
g_free (label);
goto end;
diff --git a/plugins/transcode/burn-transcode.c b/plugins/transcode/burn-transcode.c
index 9c27d46..eace97f 100644
--- a/plugins/transcode/burn-transcode.c
+++ b/plugins/transcode/burn-transcode.c
@@ -1346,7 +1346,7 @@ brasero_transcode_get_duration (BraseroTranscode *transcode)
if (duration == -1 || duration == 0)
brasero_job_error (BRASERO_JOB (transcode),
g_error_new (BRASERO_BURN_ERROR,
- BRASERO_BURN_ERROR_GENERAL,
+ BRASERO_BURN_ERROR_GENERAL, "%s",
_("Error while getting duration")));
return duration;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]