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 /rbutil/rbutilqt | |
parent | 042d8bf9eb23b4490bab3f13a2e95fc962a42c42 (diff) |
Fix potentially problematic sprintf statement.
Change-Id: Ice0d7b0d4c042be991cdbca7a390b613b5bdc5a6
Diffstat (limited to 'rbutil/rbutilqt')
-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) 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; |