[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14114 - in libmicrohttpd: . src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14114 - in libmicrohttpd: . src/daemon |
Date: |
Wed, 5 Jan 2011 15:25:18 +0100 |
Author: grothoff
Date: 2011-01-05 15:25:18 +0100 (Wed, 05 Jan 2011)
New Revision: 14114
Modified:
libmicrohttpd/ChangeLog
libmicrohttpd/src/daemon/digestauth.c
Log:
fix 1636
Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog 2011-01-05 14:22:01 UTC (rev 14113)
+++ libmicrohttpd/ChangeLog 2011-01-05 14:25:18 UTC (rev 14114)
@@ -1,6 +1,7 @@
Wed Jan 5 15:20:11 CET 2011
Fixing double-locking on non-Linux platforms when using
MHD_create_response_from_fd (#1639). -CG
+ Avoid use of strndup for better portability (#1636). -CG
Tue Jan 4 13:07:21 CET 2011
Added MHD_create_response_from_buffer, deprecating
Modified: libmicrohttpd/src/daemon/digestauth.c
===================================================================
--- libmicrohttpd/src/daemon/digestauth.c 2011-01-05 14:22:01 UTC (rev
14113)
+++ libmicrohttpd/src/daemon/digestauth.c 2011-01-05 14:25:18 UTC (rev
14114)
@@ -689,7 +689,8 @@
free(decode);
return NULL;
}
- user = strndup(decode, separator - decode);
+ user = strdup(decode);
+ user[separator - decode] = '\0'; /* cut off at ':' */
if (password != NULL)
{
*password = strdup(separator + 1);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14114 - in libmicrohttpd: . src/daemon,
gnunet <=