[Pcsclite-git-commit] [CCID] 01/01: log_msg(): log up to 3 lines of 80 characters
Ludovic Rousseau
rousseau at moszumanska.debian.org
Fri Jun 17 20:13:35 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository CCID.
commit 32c8a429a2654e16a195ba42f5a9bbf18f34d87b
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Fri Jun 17 22:09:01 2016 +0200
log_msg(): log up to 3 lines of 80 characters
The log of the CCID driver license was truncated. It is now possible to
log up to 3 * 80 = 240 characters instead of 2 * 80 = 160.
The problem is only present on Mac OS X and other systems (Android)
where the log is not done by pcscd.
pcscd has a limit of 2048 bytes and does not have this problem.
Thanks to Maksim Ivanov for the bug report.
"[Pcsclite-muscle] Small fix suggestion for CCID (logging issue)"
https://lists.alioth.debian.org/pipermail/pcsclite-muscle/Week-of-Mon-20160613/000634.html
---
src/debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/debug.c b/src/debug.c
index ff74f5a..10db0a0 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -43,7 +43,7 @@
void log_msg(const int priority, const char *fmt, ...)
{
- char debug_buffer[160]; /* up to 2 lines of 80 characters */
+ char debug_buffer[3 * 80]; /* up to 3 lines of 80 characters */
va_list argptr;
static struct timeval last_time = { 0, 0 };
struct timeval new_time = { 0, 0 };
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/CCID.git
More information about the Pcsclite-cvs-commit
mailing list