diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2014-01-05 12:51:26 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2014-01-05 14:00:58 +0100 |
commit | 827a03b12d6ee4f5a94b82bb632290d6c101124e (patch) | |
tree | 18b3558eae439bd660d950df9eb7f28ffec1cbf6 | |
parent | 042d8bf9eb23b4490bab3f13a2e95fc962a42c42 (diff) | |
download | rockbox-827a03b12d6ee4f5a94b82bb632290d6c101124e.tar.gz rockbox-827a03b12d6ee4f5a94b82bb632290d6c101124e.zip |
Fix potentially problematic sprintf statement.
Change-Id: Ice0d7b0d4c042be991cdbca7a390b613b5bdc5a6
-rw-r--r-- | rbutil/rbutilqt/base/bootloaderinstallsansa.cpp | 4 |
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) | |||
242 | sprintf(sansa->diskname, "\\\\.\\PhysicalDrive%i", devicename.toInt()); | 242 | sprintf(sansa->diskname, "\\\\.\\PhysicalDrive%i", devicename.toInt()); |
243 | #elif defined(Q_OS_MACX) | 243 | #elif defined(Q_OS_MACX) |
244 | sprintf(sansa->diskname, | 244 | sprintf(sansa->diskname, |
245 | qPrintable(devicename.remove(QRegExp("s[0-9]+$")))); | 245 | "%s", qPrintable(devicename.remove(QRegExp("s[0-9]+$")))); |
246 | #else | 246 | #else |
247 | sprintf(sansa->diskname, | 247 | sprintf(sansa->diskname, |
248 | qPrintable(devicename.remove(QRegExp("[0-9]+$")))); | 248 | "%s", qPrintable(devicename.remove(QRegExp("[0-9]+$")))); |
249 | #endif | 249 | #endif |
250 | LOG_INFO() << "sansapatcher: overriding scan, using" | 250 | LOG_INFO() << "sansapatcher: overriding scan, using" |
251 | << sansa->diskname; | 251 | << sansa->diskname; |