gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r4755 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r4755 - libmicrohttpd/src/daemon
Date: Mon, 16 Apr 2007 14:32:14 -0600 (MDT)

Author: dpittman
Date: 2007-04-16 14:32:14 -0600 (Mon, 16 Apr 2007)
New Revision: 4755

Modified:
   libmicrohttpd/src/daemon/daemon.c
Log:
Resolved Mantis bug ID:0001195

Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2007-04-16 04:16:57 UTC (rev 4754)
+++ libmicrohttpd/src/daemon/daemon.c   2007-04-16 20:32:14 UTC (rev 4755)
@@ -890,7 +890,7 @@
                                    return MHD_NO;
                                }                                       
                        }
-                       sprintf(responseMessage, "Content-length: %i\r\n\r\n", 
response->size);
+                       sprintf(responseMessage, "Content-length: 
%llu\r\n\r\n", (unsigned long long)response->size);
                        fprintf(stderr, "%s\n", responseMessage);
                        if(send(session->socket_fd, responseMessage, 
strlen(responseMessage),0)!= strlen(responseMessage)) {
                                fprintf(stderr, "Error! could not send an 
entire header in one call to send! unable to handle this case as of this 
time.\n");
@@ -902,7 +902,7 @@
                i = send(session->socket_fd, 
response->data+response->bytesSentSoFar, 
response->size-response->bytesSentSoFar,0);
                response->bytesSentSoFar += i;
 
-               fprintf(stderr, "Sent %i bytes of data\nTotal to send is %i 
bytes\n", i, response->size);
+               fprintf(stderr, "Sent %i bytes of data\nTotal to send is %llu 
bytes\n", i, (unsigned long long)response->size);
 
                if(response->bytesSentSoFar == response->size) {
                        session->currentResponses[session->currentResponse] = 
NULL;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]