[Pcsclite-cvs-commit] r6503 - /trunk/PCSC/src/tokenparser.l

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Jan 16 14:00:26 UTC 2013


Author: rousseau
Date: Wed Jan 16 14:00:25 2013
New Revision: 6503

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6503
Log:
Correctly terminate reader names containing a & sign

The & is a & in the Info.plist XML file and converted back to & by
the Lexer. Unfortunately the string was not correctly terminated and the
4 last characters of the reader name were duplicated.

Thanks to Philippe Teuwen for the bug report.

Modified:
    trunk/PCSC/src/tokenparser.l

Modified: trunk/PCSC/src/tokenparser.l
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/tokenparser.l?rev=6503&op=diff
==============================================================================
--- trunk/PCSC/src/tokenparser.l (original)
+++ trunk/PCSC/src/tokenparser.l Wed Jan 16 14:00:25 2013
@@ -118,6 +118,8 @@
 		{
 			*p = *(p+4);
 		}
+		/* terminate the now shorter string */
+		*p = '\0';
 	}
 
 	r = list_append(list_values, value);




More information about the Pcsclite-cvs-commit mailing list