source: packages/Xorg/lib/qt4/patches/000-fix-uclibc-segfaults.patch @ 20371

Last change on this file since 20371 was 20371, checked in by mirko, 7 years ago

add support for qt4

File size: 895 bytes
  • src/corelib/io/qfsfileengine.cpp

    diff -aurp -x '*.o' qt-everywhere-opensource-src-4.6.2-old/src/corelib/io/qfsfileengine.cpp qt-everywhere-opensource-src-4.6.2/src/corelib/io/qfsfileengine.cpp
    old new QString QFSFileEnginePrivate::canonicali 
    145145#endif 
    146146    // Mac OS X 10.5.x doesn't support the realpath(X,0) extenstion we use here. 
    147147#if defined(Q_OS_LINUX) || defined(Q_OS_SYMBIAN) 
    148     char *ret = realpath(path.toLocal8Bit().constData(), (char*)0); 
    149     if (ret) { 
     148    char ret[PATH_MAX]; 
     149    if (realpath(path.toLocal8Bit().constData(), ret)) { 
    150150        QString canonicalPath = QDir::cleanPath(QString::fromLocal8Bit(ret)); 
    151         free(ret); 
    152151        return canonicalPath; 
    153152    } 
    154153#endif 
Note: See TracBrowser for help on using the repository browser.