[xml-security-c] 10/23: Use the z length modifier for printing size_t

Ferenc Wágner wferi-guest at moszumanska.debian.org
Thu Jul 21 20:15:42 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to branch patch-queue/master
in repository xml-security-c.

commit 669d60d59c594c26e13865bd6307a49319e85d93
Author: Ferenc Wágner <wferi at niif.hu>
Date:   Sat Jan 30 23:56:04 2016 +0100

    Use the z length modifier for printing size_t
---
 xsec/utils/unixutils/XSECSOAPRequestorSimpleUnix.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xsec/utils/unixutils/XSECSOAPRequestorSimpleUnix.cpp b/xsec/utils/unixutils/XSECSOAPRequestorSimpleUnix.cpp
index af9940b..36b578a 100644
--- a/xsec/utils/unixutils/XSECSOAPRequestorSimpleUnix.cpp
+++ b/xsec/utils/unixutils/XSECSOAPRequestorSimpleUnix.cpp
@@ -183,7 +183,7 @@ DOMDocument * XSECSOAPRequestorSimple::doRequest(DOMDocument * request) {
 
 	strcat(fBuffer, "Content-Length: ");
     int i = (int) strlen(fBuffer);
-	sprintf(fBuffer+i, "%d", strlen(content));
+	sprintf(fBuffer+i, "%zu", strlen(content));
 	strcat(fBuffer, "\r\n");
 	strcat(fBuffer, "SOAPAction: \"\"\r\n");
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/xml-security-c.git



More information about the Pkg-shibboleth-devel mailing list