[Pcsclite-cvs-commit] Drivers/ccid/src ccid.c,1.8,1.9
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv22447
Modified Files:
ccid.c
Log Message:
the buffer var_text[] was, in fact, used outside its declaration
Index: ccid.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/ccid.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- ccid.c 9 Jul 2004 07:10:17 -0000 1.8
+++ ccid.c 9 Jul 2004 08:45:21 -0000 1.9
@@ -82,6 +82,7 @@
void ccid_error(int error, char *file, int line, char *function)
{
char *text;
+ char var_text[20];
switch (error)
{
@@ -188,8 +189,6 @@
default:
if ((error >= 1) && (error <= 127))
{
- char var_text[20];
-
sprintf(var_text, "error on byte %d", error);
text = var_text;
}