avoid buffer overflow

This commit is contained in:
Dave Murphy 2010-09-03 18:49:11 +00:00
parent 931a2e91dd
commit 247aa36062

View File

@ -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;