summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Application/UnixApplicationPathProvider.h')
-rw-r--r--Swiften/Application/UnixApplicationPathProvider.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Application/UnixApplicationPathProvider.h b/Swiften/Application/UnixApplicationPathProvider.h
index 3773fef..50cd4be 100644
--- a/Swiften/Application/UnixApplicationPathProvider.h
+++ b/Swiften/Application/UnixApplicationPathProvider.h
@@ -36,7 +36,7 @@ namespace Swift {
virtual boost::filesystem::path getExecutableDir() const {
ByteArray path;
- path.resize(SSIZE_MAX);
+ path.resize(4096);
size_t size = readlink("/proc/self/exe", path.getData(), path.getSize());
if (size > 0) {
path.resize(size);