diff --git a/source/libfat.c b/source/libfat.c index 0dfb476..3716c74 100644 --- a/source/libfat.c +++ b/source/libfat.c @@ -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;