[Pcsclite-cvs-commit] CVS Drivers/ccid/src

CVS User rousseau ludovic.rousseau@free.fr
Mon, 21 Feb 2005 07:06:53 -0700


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv3824

Modified Files:
	ccid_serial.c 
Log Message:
OpenSerialByName(): use tx_buffer[] = { 0x02 } insead of "\x02" since we
want 1 byte only and not a null-terminated string


--- /cvsroot/pcsclite/Drivers/ccid/src/ccid_serial.c	2004/10/27 13:52:44	1.31
+++ /cvsroot/pcsclite/Drivers/ccid/src/ccid_serial.c	2005/02/21 14:06:53	1.32
@@ -20,7 +20,7 @@
  */
 
 /*
- * $Id: ccid_serial.c,v 1.31 2004/10/27 13:52:44 rousseau Exp $
+ * $Id: ccid_serial.c,v 1.32 2005/02/21 14:06:53 rousseau Exp $
  */
 
 #include <stdio.h>
@@ -570,7 +570,7 @@
 	/* perform a command to be sure a GemPC Twin reader is connected
 	 * get the reader firmware */
 	{
-		unsigned char tx_buffer[] = "\x02";
+		unsigned char tx_buffer[] = { 0x02 };
 		unsigned char rx_buffer[50];
 		unsigned int rx_length = sizeof(rx_buffer);