Browse code

fix some size printf fmt

Stefan Sayer authored on 07/03/2011 19:52:08
Showing 2 changed files
... ...
@@ -383,7 +383,7 @@ XmlRpcClient::generateHeader(std::string const& body)
383 383
 
384 384
   header += "Content-Type: text/xml\r\nContent-length: ";
385 385
 
386
-  sprintf(buff,"%d\r\n\r\n", body.size());
386
+  sprintf(buff,"%zd\r\n\r\n", body.size());
387 387
 
388 388
   return header + buff;
389 389
 }
... ...
@@ -468,7 +468,7 @@ XmlRpcServer::generateHeader(std::string const& body)
468 468
     "Content-length: ";
469 469
 
470 470
   char buffLen[40];
471
-  sprintf(buffLen,"%d\r\n\r\n", body.size());
471
+  sprintf(buffLen,"%zd\r\n\r\n", body.size());
472 472
 
473 473
   return header + buffLen;
474 474
 }