[Pcsclite-cvs-commit] CVS PCSC/src

CVS User rousseau ludovic.rousseau@free.fr
Tue, 14 Sep 2004 16:47:05 -0600


Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv16902

Modified Files:
	tokenparser.l 
Log Message:
LTPBundleFindValueWithKey(): sizeof(tokenValue) is not what we want
since tokenValue is a char * and not a char []


--- /cvsroot/pcsclite/PCSC/src/tokenparser.l	2004/09/14 08:34:06	1.15
+++ /cvsroot/pcsclite/PCSC/src/tokenparser.l	2004/09/14 22:47:05	1.16
@@ -7,7 +7,7 @@
  *  David Corcoran <corcoran@linuxnet.com>
  *  Ludovic Rousseau <ludovic.rousseau@free.fr>
  *
- * $Id: tokenparser.l,v 1.15 2004/09/14 08:34:06 rousseau Exp $
+ * $Id: tokenparser.l,v 1.16 2004/09/14 22:47:05 rousseau Exp $
  */
 
 %{
@@ -134,7 +134,7 @@
 		ret = -1;
 	}
 	else
-		strlcpy(tokenValue, pcFinValue, sizeof(tokenValue));
+		strlcpy(tokenValue, pcFinValue, TOKEN_MAX_VALUE_SIZE);
 
 	fclose(file);
 	return ret;