summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-19 20:26:08 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-19 20:26:08 (GMT)
commitc2d879c9173758edbe555a7f4ed97e341dbcaff3 (patch)
treed3fceaaf4d934f45691ddff9fa46473ef690c033 /Swiften
parentc1a2f7eb8f32e944aaccc7b9f03e2551459fe0d6 (diff)
downloadswift-contrib-c2d879c9173758edbe555a7f4ed97e341dbcaff3.zip
swift-contrib-c2d879c9173758edbe555a7f4ed97e341dbcaff3.tar.bz2
SSIZE_MAX is a bit much for storing a dir name.
Diffstat (limited to 'Swiften')
-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);