From: Tsuda Kageyu Date: Thu, 19 Nov 2015 02:50:39 +0000 (+0900) Subject: Fix a string conversion bug in tag_c.cpp. X-Git-Tag: v1.11beta~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72a807def1375debb7f10b6815533113c37b1daf;p=taglib Fix a string conversion bug in tag_c.cpp. --- diff --git a/bindings/c/tag_c.cpp b/bindings/c/tag_c.cpp index 41dd15eb..b0fd8c0b 100644 --- a/bindings/c/tag_c.cpp +++ b/bindings/c/tag_c.cpp @@ -159,7 +159,7 @@ BOOL taglib_file_save(TagLib_File *file) char *taglib_tag_title(const TagLib_Tag *tag) { const Tag *t = reinterpret_cast(tag); - char *s = stringToCharArray(t->title().toCString(unicodeStrings)); + char *s = stringToCharArray(t->title()); if(stringManagementEnabled) strings.append(s); return s; @@ -168,7 +168,7 @@ char *taglib_tag_title(const TagLib_Tag *tag) char *taglib_tag_artist(const TagLib_Tag *tag) { const Tag *t = reinterpret_cast(tag); - char *s = stringToCharArray(t->artist().toCString(unicodeStrings)); + char *s = stringToCharArray(t->artist()); if(stringManagementEnabled) strings.append(s); return s; @@ -177,7 +177,7 @@ char *taglib_tag_artist(const TagLib_Tag *tag) char *taglib_tag_album(const TagLib_Tag *tag) { const Tag *t = reinterpret_cast(tag); - char *s = stringToCharArray(t->album().toCString(unicodeStrings)); + char *s = stringToCharArray(t->album()); if(stringManagementEnabled) strings.append(s); return s; @@ -186,7 +186,7 @@ char *taglib_tag_album(const TagLib_Tag *tag) char *taglib_tag_comment(const TagLib_Tag *tag) { const Tag *t = reinterpret_cast(tag); - char *s = stringToCharArray(t->comment().toCString(unicodeStrings)); + char *s = stringToCharArray(t->comment()); if(stringManagementEnabled) strings.append(s); return s; @@ -195,7 +195,7 @@ char *taglib_tag_comment(const TagLib_Tag *tag) char *taglib_tag_genre(const TagLib_Tag *tag) { const Tag *t = reinterpret_cast(tag); - char *s = stringToCharArray(t->genre().toCString(unicodeStrings)); + char *s = stringToCharArray(t->genre()); if(stringManagementEnabled) strings.append(s); return s;