[cpp-log4shib] 05/06: Increase the buffer for storing the pthread ID
Scott Cantor
cantor.2 at osu.edu
Tue Oct 19 16:13:50 UTC 2021
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to annotated tag debian/1.0.7-1
in repository cpp-log4shib.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-log4shib.git;a=commit;h=592f36778042f6bec64c9cacb1f466120e7ae7f7
commit 592f36778042f6bec64c9cacb1f466120e7ae7f7
Author: Russ Allbery <rra at stanford.edu>
AuthorDate: Tue Jun 18 16:01:29 2013 -0700
Increase the buffer for storing the pthread ID
* Increase the buffer for the thread ID to handle platforms where a long
is 64 bits. This should hopefully fix the FTBFS on ia64.
---
debian/changelog | 4 +++-
src/PThreads.cpp | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index eddce2c..8030307 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,10 @@ log4shib (1.0.7-1) unstable; urgency=low
* New upstream release.
- Mark log sockets close-on-exec.
+ * Increase the buffer for the thread ID to handle platforms where a long
+ is 64 bits. This should hopefully fix the FTBFS on ia64.
- -- Russ Allbery <rra at debian.org> Tue, 18 Jun 2013 15:14:06 -0700
+ -- Russ Allbery <rra at debian.org> Tue, 18 Jun 2013 16:02:09 -0700
log4shib (1.0.6-1) unstable; urgency=low
diff --git a/src/PThreads.cpp b/src/PThreads.cpp
index 334c89d..f862b51 100644
--- a/src/PThreads.cpp
+++ b/src/PThreads.cpp
@@ -6,8 +6,8 @@ namespace log4shib {
namespace threading {
std::string getThreadId() {
- char buffer[16];
- ::sprintf(buffer, "%ld", pthread_self());
+ char buffer[32];
+ ::sprintf(buffer, "%ld", (long) pthread_self());
return std::string(buffer);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list