mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-05-01 18:39:29 +02:00
Prevent segfault while scanning for MP3 files
Make sure the destination string is NULL-terminated when building the uppercase extension. The tmp_ext_u array is uninitialized when it's passed to this function.
This commit is contained in:
@@ -61,6 +61,7 @@ static void to_upper(char *d, const char *s)
|
|||||||
else
|
else
|
||||||
*d = *s;
|
*d = *s;
|
||||||
}
|
}
|
||||||
|
*d = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// cdd.c uses lba - 150
|
// cdd.c uses lba - 150
|
||||||
|
|||||||
Reference in New Issue
Block a user