summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2014-01-05 12:51:26 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2014-01-05 14:00:58 +0100
commit827a03b12d6ee4f5a94b82bb632290d6c101124e (patch)
tree18b3558eae439bd660d950df9eb7f28ffec1cbf6 /rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
parent042d8bf9eb23b4490bab3f13a2e95fc962a42c42 (diff)
downloadrockbox-827a03b12d6ee4f5a94b82bb632290d6c101124e.tar.gz
rockbox-827a03b12d6ee4f5a94b82bb632290d6c101124e.tar.bz2
rockbox-827a03b12d6ee4f5a94b82bb632290d6c101124e.zip
Fix potentially problematic sprintf statement.
Change-Id: Ice0d7b0d4c042be991cdbca7a390b613b5bdc5a6
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallsansa.cpp')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallsansa.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp b/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
index d722dfdf6e..245e5525bb 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
@@ -242,10 +242,10 @@ bool BootloaderInstallSansa::sansaInitialize(struct sansa_t *sansa)
sprintf(sansa->diskname, "\\\\.\\PhysicalDrive%i", devicename.toInt());
#elif defined(Q_OS_MACX)
sprintf(sansa->diskname,
- qPrintable(devicename.remove(QRegExp("s[0-9]+$"))));
+ "%s", qPrintable(devicename.remove(QRegExp("s[0-9]+$"))));
#else
sprintf(sansa->diskname,
- qPrintable(devicename.remove(QRegExp("[0-9]+$"))));
+ "%s", qPrintable(devicename.remove(QRegExp("[0-9]+$"))));
#endif
LOG_INFO() << "sansapatcher: overriding scan, using"
<< sansa->diskname;