diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-04-29 19:59:28 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-04-29 19:59:28 +0000 |
commit | 910eac28b6d1f973412ab6cc8483bfe05f756463 (patch) | |
tree | 8606bc384c4c92910e0fe2d6539db0edd2b3b332 /src/htsname.c | |
parent | 33ac73bdd31bf771e0da7c04d4db33b557dc567b (diff) |
Log charset conversion
Diffstat (limited to 'src/htsname.c')
-rw-r--r-- | src/htsname.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/htsname.c b/src/htsname.c index 06a04a0..641e7aa 100644 --- a/src/htsname.c +++ b/src/htsname.c @@ -1348,7 +1348,10 @@ int url_savename2(char* adr_complete, char* fil_complete, char* save, if (charset != NULL && charset[0] != '\0') { char *const s = hts_convertStringToUTF8(save, (int) strlen(save), charset); if (s != NULL) { - strcpy(save, s); + if ( (opt->debug>1) && (opt->log!=NULL) ) { + HTS_LOG(opt,LOG_INFO); fprintf(opt->log,"engine: save-name: charset conversion from '%s' to '%s'"LF, save, s); + } + strcpybuff(save, s); free(s); } } |