X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cgi.c;h=7c01bd9862a62518d679090948e57a755d29e41c;hb=73702f59d5e5e7d900d288a3848bfd1c72838a7e;hp=0b63daf6ae89a3103fbdaf2fa9f7f5eb6cc9d59a;hpb=8fca1d79d089342400381c3bd8e1c717d34ce9b1;p=collection4.git diff --git a/src/utils_cgi.c b/src/utils_cgi.c index 0b63daf..7c01bd9 100644 --- a/src/utils_cgi.c +++ b/src/utils_cgi.c @@ -104,6 +104,7 @@ static char *uri_unescape_copy (char *dest, const char *src, size_t n) /* {{{ */ *dest_ptr = *src_ptr; } + n--; src_ptr++; dest_ptr++; *dest_ptr = 0; @@ -111,7 +112,7 @@ static char *uri_unescape_copy (char *dest, const char *src, size_t n) /* {{{ */ assert (*dest_ptr == 0); return (dest); -} /* }}} char *uri_unescape */ +} /* }}} char *uri_unescape_copy */ static char *uri_unescape (const char *string) /* {{{ */ { @@ -751,7 +752,7 @@ int html_print_search_box (__attribute__((unused)) void *user_data) /* {{{ */ term_html = html_escape (param ("q")); printf ("
\n" - " \n" + " \n" " \n" " \n" "
\n",