1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-08 07:08:12 +00:00

Change type to uint8_t to avoid checks depending on char signedness.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30983 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-04-02 07:14:21 +00:00
parent a300074bd2
commit fd6ce85192

View File

@ -125,7 +125,7 @@ static void scast_meta_read(int fd, streaming_ctrl_t *sc) {
metalen = tmp * 16;
if (metalen > 0) {
int i;
char *info = malloc(metalen + 1);
uint8_t *info = malloc(metalen + 1);
unsigned nlen = my_read(fd, info, metalen, sc);
// avoid breaking the user's terminal too much
if (nlen > 256) nlen = 256;