mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 01:49:17 +01:00
avoid buffer overflow
This commit is contained in:
parent
931a2e91dd
commit
247aa36062
@ -82,7 +82,7 @@ bool fatMount (const char* name, const DISC_INTERFACE* interface, sec_t startSec
|
||||
return false;
|
||||
|
||||
char devname[10];
|
||||
sprintf(devname, "%s:", name);
|
||||
snprintf(devname, 10, "%s:", name);
|
||||
if(FindDevice(devname) >= 0)
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user