Skip to content

Commit

Permalink
Cast char to unsigned char before using as an array index.
Browse files Browse the repository at this point in the history
The signedness of 'char' is implementation specific;
in this case we really need an unsigned char.
  • Loading branch information
daniel-kristjansson committed Dec 4, 2012
1 parent f651834 commit b4b4e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/vbitext/lang.c
Expand Up @@ -96,7 +96,7 @@ lang_init(void)

memset(lang_char, 0, sizeof(lang_char));
for (i = 1; i <= 13; i++)
lang_char[lang_chars[0][i]] = i;
lang_char[(unsigned char)(lang_chars[0][i])] = i;
}


Expand Down

0 comments on commit b4b4e45

Please sign in to comment.