From 250ced0be3ba2e72440ee9ee769fcb62d9d25415 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sun, 26 Feb 2012 16:20:18 +0000 Subject: [PATCH] get rid of sprintf as per https://sourceforge.net/tracker/?func=detail&aid=3465300&group_id=114505&atid=668553 --- source/libfat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libfat.c b/source/libfat.c index 9f8dd01..5cd766f 100644 --- a/source/libfat.c +++ b/source/libfat.c @@ -82,7 +82,8 @@ bool fatMount (const char* name, const DISC_INTERFACE* interface, sec_t startSec return false; char devname[10]; - sprintf(devname, "%s:", name); + strcpy(devname, name); + strcat(devname, ":"); if(FindDevice(devname) >= 0) return true;