1
From 9c696d0e72bf2a105750fba9efb01518a958efce Mon Sep 17 00:00:00 2001
2
From: Jean Schurger <jean@schurger.org>
3
Date: Thu, 20 Oct 2011 20:42:20 +0200
4
Subject: [PATCH] Fix printf format string handling, bug 661091
6
Without this patch, Brasero fails to build if GCC has
7
-Werror=format-security enabled.
9
plugins/libburnia/burn-libisofs.c | 4 ++--
10
plugins/transcode/burn-transcode.c | 2 +-
11
2 files changed, 3 insertions(+), 3 deletions(-)
13
Index: brasero-3.2.0/plugins/libburnia/burn-libisofs.c
14
===================================================================
15
--- brasero-3.2.0.orig/plugins/libburnia/burn-libisofs.c 2011-09-27 19:19:01.000000000 +1000
16
+++ brasero-3.2.0/plugins/libburnia/burn-libisofs.c 2011-11-18 09:22:04.353736546 +1100
18
if (read_bytes == -1 && !priv->error)
19
priv->error = g_error_new (BRASERO_BURN_ERROR,
20
BRASERO_BURN_ERROR_GENERAL,
21
- _("Volume could not be created"));
22
+ "%s", _("Volume could not be created"));
27
brasero_job_get_data_label (BRASERO_JOB (self), &label);
28
if (!iso_image_new (label, &image)) {
29
priv->error = g_error_new (BRASERO_BURN_ERROR,
30
- BRASERO_BURN_ERROR_GENERAL,
31
+ BRASERO_BURN_ERROR_GENERAL, "%s",
32
_("Volume could not be created"));
35
Index: brasero-3.2.0/plugins/transcode/burn-transcode.c
36
===================================================================
37
--- brasero-3.2.0.orig/plugins/transcode/burn-transcode.c 2011-09-27 19:19:01.000000000 +1000
38
+++ brasero-3.2.0/plugins/transcode/burn-transcode.c 2011-11-18 09:22:04.357736546 +1100
40
if (duration == -1 || duration == 0)
41
brasero_job_error (BRASERO_JOB (transcode),
42
g_error_new (BRASERO_BURN_ERROR,
43
- BRASERO_BURN_ERROR_GENERAL,
44
+ BRASERO_BURN_ERROR_GENERAL, "%s",
45
_("Error while getting duration")));
48
Index: brasero-3.2.0/plugins/libburnia/burn-libburn.c
49
===================================================================
50
--- brasero-3.2.0.orig/plugins/libburnia/burn-libburn.c 2011-09-27 19:19:01.000000000 +1000
51
+++ brasero-3.2.0/plugins/libburnia/burn-libburn.c 2011-11-18 09:22:04.357736546 +1100
53
BRASERO_JOB_LOG (BRASERO_JOB (self), "Precheck failed %s", reason);
56
- BRASERO_BURN_ERROR_GENERAL,
57
+ BRASERO_BURN_ERROR_GENERAL, "%s",
59
return BRASERO_BURN_ERR;
61
Index: brasero-3.2.0/plugins/libburnia/burn-libburn-common.c
62
===================================================================
63
--- brasero-3.2.0.orig/plugins/libburnia/burn-libburn-common.c 2011-09-27 19:19:01.000000000 +1000
64
+++ brasero-3.2.0/plugins/libburnia/burn-libburn-common.c 2011-11-18 09:22:49.773735295 +1100
67
BRASERO_JOB_LOG (self, "Libburn reported an error %s", err_txt);
68
error = g_error_new (BRASERO_BURN_ERROR,
69
- BRASERO_BURN_ERROR_GENERAL,
70
+ BRASERO_BURN_ERROR_GENERAL, "%s",
72
brasero_job_error (BRASERO_JOB (self), error);