25 lines
698 B
Diff
25 lines
698 B
Diff
From f3bd75479aef611e23c5f82ab2299b0ce15078e0 Mon Sep 17 00:00:00 2001
|
|
From: Mathieu Bridon <bochecha@fedoraproject.org>
|
|
Date: Wed, 4 Dec 2013 12:36:02 +0800
|
|
Subject: [PATCH] Fix build with -Werror=format-security
|
|
|
|
---
|
|
src/py_adonthell_wrap.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/py_adonthell_wrap.cc b/src/py_adonthell_wrap.cc
|
|
index 048f0af..2a73207 100644
|
|
--- a/src/py_adonthell_wrap.cc
|
|
+++ b/src/py_adonthell_wrap.cc
|
|
@@ -867,7 +867,7 @@ SWIG_Python_AddErrorMsg(const char* mesg)
|
|
Py_DECREF(old_str);
|
|
Py_DECREF(value);
|
|
} else {
|
|
- PyErr_Format(PyExc_RuntimeError, mesg);
|
|
+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
|
|
}
|
|
}
|
|
|
|
--
|
|
1.8.4.2
|
|
|