blob: 490c8670185f0b7470aa5eb07eeda8e51bcf5c54 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/subtitles.c.orig 2016-01-10 04:35:56 UTC
+++ src/subtitles.c
@@ -284,7 +284,7 @@ static char *convert_subtitle_to_utf8(co
return NULL;
}
outptr=newtext;
- if (iconv(cd, &inptr, &insz, &outptr, &outsz) < 0) {
+ if (iconv(cd, &inptr, &insz, &outptr, &outsz) == (size_t)-1) {
warn(frontend, NULL, 0, "Failed to convert text to UTF-8\n");
free(newtext);
newtext = NULL;
|