[Pcsclite-cvs-commit] r7064 - trunk/PCSC/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Wed Dec 31 17:29:59 UTC 2014


Author: rousseau
Date: 2014-12-31 17:29:59 +0000 (Wed, 31 Dec 2014)
New Revision: 7064

Modified:
   trunk/PCSC/src/debuglog.c
Log:
Do not use strlcpy(3)

Remove the dependency.


Modified: trunk/PCSC/src/debuglog.c
===================================================================
--- trunk/PCSC/src/debuglog.c	2014-12-31 17:28:38 UTC (rev 7063)
+++ trunk/PCSC/src/debuglog.c	2014-12-31 17:29:59 UTC (rev 7064)
@@ -55,7 +55,6 @@
 #include "misc.h"
 #include "debuglog.h"
 #include "sys_generic.h"
-#include "strlcpycat.h"
 
 #ifdef NO_LOG
 
@@ -203,10 +202,10 @@
 	char DebugBuffer[len*3 + strlen(msg) +1];
 	int i;
 	char *c;
-	size_t l;
 
-	l = strlcpy(DebugBuffer, msg, sizeof(DebugBuffer));
-	c = DebugBuffer + l;
+	/* DebugBuffer is always big enough for msg */
+	strcpy(DebugBuffer, msg);
+	c = DebugBuffer + strlen(DebugBuffer);
 
 	for (i = 0; (i < len); ++i)
 	{




More information about the Pcsclite-cvs-commit mailing list