[X2Go-Commits] [x2goclient] 02/03: src/pulsemanager.cpp: use std::ssize_t for the path length, because it could be -1 and std::size_t is not applicable.
git-admin at x2go.org
git-admin at x2go.org
Sat Dec 10 14:59:49 CET 2016
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch bugfix/osx
in repository x2goclient.
commit 8462e44a08b8fd7ff70e9d6cd40551d3a25f6749
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sat Dec 10 14:57:17 2016 +0100
src/pulsemanager.cpp: use std::ssize_t for the path length, because it could be -1 and std::size_t is not applicable.
---
debian/changelog | 2 ++
src/pulsemanager.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 9cdde37..b4d2d34 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -501,6 +501,8 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
std::(u)int*_t types without having to use C++11.
- src/pulsemanager.cpp: fix Linux-based code by fixing a really stupid
typo ("erange" instead of "errno") and including the cerrno header.
+ - src/pulsemanager.cpp: use std::ssize_t for the path length, because it
+ could be -1 and std::size_t is not applicable.
[ Bernard Cafarelli ]
* New upstream version (4.0.5.3):
diff --git a/src/pulsemanager.cpp b/src/pulsemanager.cpp
index 6e8df01..1878b60 100644
--- a/src/pulsemanager.cpp
+++ b/src/pulsemanager.cpp
@@ -144,7 +144,7 @@ PulseManager::PulseManager () : app_dir_ (QApplication::applicationDirPath ()),
server_working_dir_ = QString (app_dir_ + "/pulse/");
server_binary_ = QString (app_dir_ + "/pulse/pulseaudio.exe");
#elif defined (Q_OS_LINUX)
- std::size_t path_len = pathconf (".", _PC_PATH_MAX);
+ std::ssize_t path_len = pathconf (".", _PC_PATH_MAX);
if (-1 == path_len) {
path_len = 1024;
--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list