summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-08-25 02:29:56 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-08-25 02:29:56 +0200
commitefcd2f6e634cec69d1620a654c4aecd7672f2ab2 (patch)
tree8b9a118d9f517ed3f013daca4602b9fd932c7337 /src
parent8c063aa080e48c048e7fc52a0906d6af97a130dd (diff)
downloadtdeio-locate-efcd2f6e634cec69d1620a654c4aecd7672f2ab2.tar.gz
tdeio-locate-efcd2f6e634cec69d1620a654c4aecd7672f2ab2.zip
Fix handling properties of large files
Diffstat (limited to 'src')
-rw-r--r--src/kio_locate.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kio_locate.cpp b/src/kio_locate.cpp
index b846b70..47a70eb 100644
--- a/src/kio_locate.cpp
+++ b/src/kio_locate.cpp
@@ -32,6 +32,7 @@
#include <kapplication.h>
#include <kconfigdialog.h>
#include <kdebug.h>
+#include <kde_file.h>
#include <kiconloader.h>
#include <klocale.h>
#include <kurl.h>
@@ -188,7 +189,7 @@ static void addAtom(UDSEntry& entry, unsigned int uds, const TQString& s)
}
-static void addAtom(UDSEntry& entry, unsigned int uds, long l)
+static void addAtom(UDSEntry& entry, unsigned int uds, long long l)
{
UDSAtom a;
a.m_uds = uds;
@@ -204,8 +205,8 @@ static const UDSEntry pathToUDSEntry(const TQString& path, const TQString& displ
addAtom(entry, KIO::UDS_NAME, display);
if (!path.isEmpty()) {
- struct stat info;
- lstat(path.local8Bit(), &info);
+ KDE_struct_stat info;
+ KDE_lstat(path.local8Bit(), &info);
addAtom(entry, KIO::UDS_SIZE, info.st_size);
addAtom(entry, KIO::UDS_ACCESS, info.st_mode);