Commit 60b83f40 authored by Bart van der Velden's avatar Bart van der Velden

Attempt to fix the unit test (#65)

parent 6a5348fc
......@@ -22,7 +22,11 @@ TagLib::FileName QStringToFileName(const QString& path)
#ifdef WIN32
return reinterpret_cast<const wchar_t*> (path.constData());
#else
return QFile::encodeName(path).constData();
QByteArray qba = QFile::encodeName(path);
int size = qstrlen(qba);
char* str = new char[size];
qstrcpy(str, qba.constData());
return str;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment