1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@niif.hu>
Date: Sat, 30 Jan 2016 23:56:04 +0100
Subject: 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");
|