[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11708 - libmicrohttpd/src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11708 - libmicrohttpd/src/daemon |
Date: |
Sun, 13 Jun 2010 10:07:01 +0200 |
Author: grothoff
Date: 2010-06-13 10:07:01 +0200 (Sun, 13 Jun 2010)
New Revision: 11708
Modified:
libmicrohttpd/src/daemon/connection.c
Log:
cleaner
Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c 2010-06-13 07:35:25 UTC (rev
11707)
+++ libmicrohttpd/src/daemon/connection.c 2010-06-13 08:07:01 UTC (rev
11708)
@@ -450,7 +450,9 @@
}
if (ret > 0xFFFFFF)
ret = 0xFFFFFF;
- SPRINTF (cbuf, "%X\r\n", ret);
+ snprintf (cbuf,
+ sizeof (cbuf),
+ "%X\r\n", ret);
cblen = strlen (cbuf);
EXTRA_CHECK (cblen <= sizeof (cbuf));
memcpy (&connection->write_buffer[sizeof (cbuf) - cblen], cbuf, cblen);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11708 - libmicrohttpd/src/daemon,
gnunet <=