Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 14e365511e750b810494f0b35c0efae4 > files > 10

ice-3.4.2-3.mga3.src.rpm

--- Ice-3.4.2/py/modules/IcePy/Operation.cpp~	2011-06-16 03:44:00.000000000 +0800
+++ Ice-3.4.2/py/modules/IcePy/Operation.cpp	2012-12-16 20:50:49.404563427 +0800
@@ -1872,7 +1872,7 @@
         // IllegalArgumentException can propagate directly.
         // (Raised by checkAsyncTwowayOnly)
         //
-        PyErr_Format(PyExc_RuntimeError, STRCAST(ex.reason().c_str()));
+        PyErr_Format(PyExc_RuntimeError, "%s", STRCAST(ex.reason().c_str()));
         return 0;
     }
     catch(const Ice::Exception&)
@@ -1957,7 +1957,7 @@
     }
     catch(const IceUtil::IllegalArgumentException& ex)
     {
-        PyErr_Format(PyExc_RuntimeError, STRCAST(ex.reason().c_str()));
+        PyErr_Format(PyExc_RuntimeError, "%s", STRCAST(ex.reason().c_str()));
     }
     catch(const Ice::Exception& ex)
     {
@@ -2604,7 +2604,7 @@
     }
     catch(const IceUtil::IllegalArgumentException& ex)
     {
-        PyErr_Format(PyExc_RuntimeError, STRCAST(ex.reason().c_str()));
+        PyErr_Format(PyExc_RuntimeError, "%s", STRCAST(ex.reason().c_str()));
     }
     catch(const Ice::Exception& ex)
     {
--- Ice-3.4.2/rb/src/IceRuby/Operation.cpp~	2011-06-16 03:44:00.000000000 +0800
+++ Ice-3.4.2/rb/src/IceRuby/Operation.cpp	2012-12-16 21:07:50.111240078 +0800
@@ -240,7 +240,7 @@
 
     if(!_deprecateMessage.empty())
     {
-        rb_warning(_deprecateMessage.c_str());
+        rb_warning("%s", _deprecateMessage.c_str());
         _deprecateMessage.clear(); // Only show the warning once.
     }