diff options
-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; |