Diff options
authorMark Lodato <lodatom@gmail.com>
committerLars Hjemli <hjemli@gmail.com>
commit
parent
tree
download
html: fix strcpy bug in convert_query_hexchar
The source and destination strings in strcpy() may not overlap. Instead, use memmove(), which allows overlap. This fixes test t0104, where 'url=foo%2bbar/tree' was being parsed improperly. Signed-off-by: Mark Lodato <lodatom@gmail.com>
-rw-r--r--html.c9
1 file changed, 5 insertions, 4 deletions