File: Use-the-z-length-modifier-for-printing-size_t.patch

package info (click to toggle)
xml-security-c 1.7.3-4%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,096 kB
  • sloc: cpp: 47,259; sh: 4,123; makefile: 503
file content (21 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (3)
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");