summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/htsparse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/htsparse.c b/src/htsparse.c
index 6869293..606ecb6 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -2155,10 +2155,8 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) {
// we need to encode query string non-ascii chars,
// leaving the encoding as-is (unlike the file part)
- inplace_escape_check_url(query, sizeof(query));
-
- // copy back query
- strcatbuff(lien, query); /* restore */
+ // and copy back query
+ append_escape_check_url(query, lien, sizeof(lien));
}
// convertir les éventuels \ en des / pour éviter des problèmes de reconnaissance!