Blame SOURCES/esc-gcc11.patch

ca265e
diff --git a/esc/src/lib/coolkey/CoolKey_Message.cpp b/esc/src/lib/coolkey/CoolKey_Message.cpp
ca265e
index 87ee309..7b80f70 100644
ca265e
--- a/esc/src/lib/coolkey/CoolKey_Message.cpp
ca265e
+++ b/esc/src/lib/coolkey/CoolKey_Message.cpp
ca265e
@@ -213,7 +213,7 @@ void  eCKMessage::setBinValue(string &aKey,unsigned char*aValue,int *aSize)
ca265e
     if(!aKey.length())
ca265e
         return;
ca265e
 
ca265e
-    if(aSize <=0 || !aValue)
ca265e
+    if(aSize ==0 || !aValue)
ca265e
         return;
ca265e
 
ca265e
     string data = "";
ca265e
diff --git a/esc/src/lib/nss-http-client/request.cpp b/esc/src/lib/nss-http-client/request.cpp
ca265e
index cabd94f..5428350 100644
ca265e
--- a/esc/src/lib/nss-http-client/request.cpp
ca265e
+++ b/esc/src/lib/nss-http-client/request.cpp
ca265e
@@ -192,7 +192,7 @@ PRBool PSHttpRequest::setBody(int size, const char* body) {
ca265e
     }
ca265e
 
ca265e
     _bodyLength = size;
ca265e
-     sprintf(_body,body);
ca265e
+     sprintf(_body,"%s",body);
ca265e
     //_body = (char *)body;
ca265e
 
ca265e
     return PR_TRUE;