diff options
Diffstat (limited to 'src/daemon/internal.c')
-rw-r--r-- | src/daemon/internal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daemon/internal.c b/src/daemon/internal.c index bec54c93..38fd5771 100644 --- a/src/daemon/internal.c +++ b/src/daemon/internal.c | |||
@@ -106,12 +106,10 @@ void | |||
106 | MHD_tls_log_func (int level, const char *str) | 106 | MHD_tls_log_func (int level, const char *str) |
107 | { | 107 | { |
108 | #ifdef DEBUG | 108 | #ifdef DEBUG |
109 | fprintf (stdout, "|<%d>| %s", level, str); | 109 | FPRINTF (stdout, "|<%d>| %s", level, str); |
110 | #endif | 110 | #endif |
111 | } | 111 | } |
112 | 112 | ||
113 | |||
114 | |||
115 | /** | 113 | /** |
116 | * Process escape sequences ('+'=space, %HH) | 114 | * Process escape sequences ('+'=space, %HH) |
117 | */ | 115 | */ |
@@ -125,8 +123,10 @@ MHD_http_unescape (char *val) | |||
125 | *esc = ' '; | 123 | *esc = ' '; |
126 | while (NULL != (esc = strstr (val, "%"))) | 124 | while (NULL != (esc = strstr (val, "%"))) |
127 | { | 125 | { |
128 | if ((1 == sscanf (&esc[1], | 126 | if ((1 == SSCANF (&esc[1], |
129 | "%2x", &num)) || (1 == sscanf (&esc[1], "%2X", &num))) | 127 | "%2x", &num)) || |
128 | (1 == SSCANF (&esc[1], | ||
129 | "%2X", &num))) | ||
130 | { | 130 | { |
131 | esc[0] = (unsigned char) num; | 131 | esc[0] = (unsigned char) num; |
132 | memmove (&esc[1], &esc[3], strlen (&esc[3]) + 1); | 132 | memmove (&esc[1], &esc[3], strlen (&esc[3]) + 1); |