diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-04-29 19:58:12 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-04-29 19:58:12 +0000 |
commit | 33ac73bdd31bf771e0da7c04d4db33b557dc567b (patch) | |
tree | 49ac2b419ababc01b4957a80f9873e4f732a07bd /src/htscharset.c | |
parent | 669098ec49dc9e03ee921ae164a595210274ae20 (diff) |
Fixed serious UTF-8 conversion bug in hts_convertStringToUTF8() on Linux that may lead to buggy filenames.
Diffstat (limited to 'src/htscharset.c')
-rw-r--r-- | src/htscharset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/htscharset.c b/src/htscharset.c index 26f8d7a..8f96b85 100644 --- a/src/htscharset.c +++ b/src/htscharset.c @@ -377,6 +377,7 @@ static char *hts_convertStringToUTF8_(const char *s, size_t size, const char *to /* Initial size to around the string size */ for(outbufCapa = 16 ; outbufCapa < size + 1 ; outbufCapa *= 2) ; outbuf = malloc(outbufCapa); + outbytesleft = outbufCapa; /* Convert */ while(outbuf != NULL && inbytesleft != 0) { |