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

Ludovic Rousseau rousseau at costa.debian.org
Sat May 20 14:26:13 UTC 2006


Author: rousseau
Date: 2006-05-20 14:26:13 +0000 (Sat, 20 May 2006)
New Revision: 2050

Modified:
   trunk/PCSC/src/debuglog.c
Log:
log_xxd(): replace strlen(c) by 3 since the string length is constant
(gain a few CPU cycles)


Modified: trunk/PCSC/src/debuglog.c
===================================================================
--- trunk/PCSC/src/debuglog.c	2006-05-20 14:25:07 UTC (rev 2049)
+++ trunk/PCSC/src/debuglog.c	2006-05-20 14:26:13 UTC (rev 2050)
@@ -128,7 +128,7 @@
 	for (i = 0; (i < len) && (c < debug_buf_end); ++i)
 	{
 		sprintf(c, "%02X ", buffer[i]);
-		c += strlen(c);
+		c += 3;
 	}
 
 	/* the buffer is too small so end it with "..." */




More information about the Pcsclite-cvs-commit mailing list