1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From 432848cca35a4edd8ce775cb6531592783e3450d Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 11 Jun 2018 14:56:08 +0200
Subject: [PATCH] Fix: src/gdk/gpixbuf.c:120:3: error: format not a string
literal and no format arguments [-Werror=format-security]
---
src/gdk/gpixbuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gdk/gpixbuf.c b/src/gdk/gpixbuf.c
index 04871da..2c7303c 100755
--- a/src/gdk/gpixbuf.c
+++ b/src/gdk/gpixbuf.c
@@ -117,7 +117,7 @@ GPIXBUF_METHOD(createFromFile){
pix = gdk_pixbuf_new_from_file_at_scale (filename, width, height, preserve_ratio, &error);
}
if(!pix){
- zend_throw_exception_ex(pggi_exception_get(), 0, error->message);
+ zend_throw_exception_ex(pggi_exception_get(), 0, "%s", error->message);
return;
}
zval * new_pixbuf;
|