[Pcsclite-cvs-commit] r6090 - /trunk/PCSC/src/tokenparser.l
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Sun Oct 30 14:03:19 UTC 2011
Author: rousseau
Date: Sun Oct 30 14:03:16 2011
New Revision: 6090
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6090
Log:
Convert the firt & into & in a
Allow to use names like Giesecke & Devrient
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=6090&op=diff
==============================================================================
--- trunk/PCSC/src/tokenparser.l (original)
+++ trunk/PCSC/src/tokenparser.l Sun Oct 30 14:03:16 2011
@@ -92,6 +92,7 @@
int r;
size_t len;
char *value;
+ char *amp;
/* <string>foobar</string>
* 012345678 : 8 is the first string character index */
@@ -105,6 +106,19 @@
assert(value);
(void)strlcpy(value, &pcToken[8], len);
+
+ /* convert the firt & into & */
+ amp = strstr(value, "&");
+ if (amp)
+ {
+ char *p;
+
+ /* just skip "amp;" substring (4 letters) */
+ for (p = amp+1; *p; p++)
+ {
+ *p = *(p+4);
+ }
+ }
r = list_append(list_values, value);
assert(r >= 0);
More information about the Pcsclite-cvs-commit
mailing list