diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-31 14:31:42 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-31 14:31:42 +0000 |
commit | 37ad0e913a886cf96fe0488542e00e2fbea278a9 (patch) | |
tree | 224e14eeb54d8b08a7f999d4dde98651485efed0 /src | |
parent | 356a35deb593b3d1685e63d9ab8cb3bace462ffd (diff) |
Fixed hts_unescapeEntities()
Diffstat (limited to 'src')
-rw-r--r-- | src/htsparse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/htsparse.c b/src/htsparse.c index f1fcb36..4868819 100644 --- a/src/htsparse.c +++ b/src/htsparse.c @@ -2121,16 +2121,16 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) { } // decode URI entities with UTF-8 charset - if (!hts_unescapeEntities(lien, lien, strlen(lien))) { + if (hts_unescapeEntities(lien, lien, strlen(lien) + 1) != 0) { hts_log_print(opt, LOG_WARNING, "could not decode URI '%s' with charset '%s'", lien, charset); } // decode query string entities with page charset if (hasCharset) { - if (!hts_unescapeEntitiesWithCharset(query, - query, strlen(query), - charset)) { + if (hts_unescapeEntitiesWithCharset(query, + query, strlen(query) + 1, + charset) != 0) { hts_log_print(opt, LOG_WARNING, "could not decode query string '%s' with charset '%s'", query, charset); } |