diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-19 20:26:08 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-19 20:26:08 (GMT) |
commit | c2d879c9173758edbe555a7f4ed97e341dbcaff3 (patch) | |
tree | d3fceaaf4d934f45691ddff9fa46473ef690c033 /Swiften | |
parent | c1a2f7eb8f32e944aaccc7b9f03e2551459fe0d6 (diff) | |
download | swift-c2d879c9173758edbe555a7f4ed97e341dbcaff3.zip swift-c2d879c9173758edbe555a7f4ed97e341dbcaff3.tar.bz2 |
SSIZE_MAX is a bit much for storing a dir name.
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Application/UnixApplicationPathProvider.h | 2 |
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); |