mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 09:59:18 +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;
|
return false;
|
||||||
|
|
||||||
char devname[10];
|
char devname[10];
|
||||||
sprintf(devname, "%s:", name);
|
snprintf(devname, 10, "%s:", name);
|
||||||
if(FindDevice(devname) >= 0)
|
if(FindDevice(devname) >= 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user