summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-03-23 09:50:41 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-03-23 09:50:41 (GMT)
commit823d3a26d21e38c8ab82a07be71377f0276a0555 (patch)
treebfc153b41b9ad1219bc0474fc3d16f57b1cf4c0d /Swiften/Base
parent488b9258c0c7d7db6672d642e30f66119632ad94 (diff)
downloadswift-823d3a26d21e38c8ab82a07be71377f0276a0555.zip
swift-823d3a26d21e38c8ab82a07be71377f0276a0555.tar.bz2
Use ssize_t for readlink.
Diffstat (limited to 'Swiften/Base')
-rw-r--r--Swiften/Base/Paths.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Base/Paths.cpp b/Swiften/Base/Paths.cpp
index b40f9b8..edebc30 100644
--- a/Swiften/Base/Paths.cpp
+++ b/Swiften/Base/Paths.cpp
@@ -30,7 +30,7 @@ boost::filesystem::path Paths::getExecutablePath() {
#elif defined(SWIFTEN_PLATFORM_LINUX)
ByteArray path;
path.resize(4096);
- size_t size = readlink("/proc/self/exe", reinterpret_cast<char*>(vecptr(path)), path.size());
+ ssize_t size = readlink("/proc/self/exe", reinterpret_cast<char*>(vecptr(path)), path.size());
if (size > 0) {
path.resize(size);
return boost::filesystem::path(std::string(reinterpret_cast<const char*>(vecptr(path)), path.size()).c_str()).parent_path();