aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/internal.c')
-rw-r--r--src/microhttpd/internal.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/microhttpd/internal.c b/src/microhttpd/internal.c
index ef286b20..9b234fea 100644
--- a/src/microhttpd/internal.c
+++ b/src/microhttpd/internal.c
@@ -136,6 +136,12 @@ MHD_http_unescape (void *cls,
136 rpos++; 136 rpos++;
137 break; 137 break;
138 case '%': 138 case '%':
139 if ( ('\0' == rpos[1]) ||
140 ('\0' == rpos[2]) )
141 {
142 *wpos = '\0';
143 return wpos - val;
144 }
139 buf3[0] = rpos[1]; 145 buf3[0] = rpos[1];
140 buf3[1] = rpos[2]; 146 buf3[1] = rpos[2];
141 buf3[2] = '\0'; 147 buf3[2] = '\0';
@@ -159,7 +165,7 @@ MHD_http_unescape (void *cls,
159} 165}
160 166
161 167
162time_t 168time_t
163MHD_monotonic_time (void) 169MHD_monotonic_time (void)
164{ 170{
165#ifdef HAVE_CLOCK_GETTIME 171#ifdef HAVE_CLOCK_GETTIME