[X2Go-Commits] [x2goclient] 272/280: 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
Wed Jan 18 12:26:22 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch bugfix/osx
in repository x2goclient.
commit 6d186eb04e6a1a31e2de1ff08b76d5d5bbae3a2e
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 56cc7fb..8ee1853 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -523,6 +523,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