[Pcsclite-cvs-commit] PCSC/src debuglog.c,1.20,1.21

rousseau@haydn.debian.org rousseau@haydn.debian.org


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

Modified Files:
	debuglog.c 
Log Message:
add a default case in pcsc_stringify_error()


Index: debuglog.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/debuglog.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- debuglog.c	21 Jan 2004 17:06:19 -0000	1.20
+++ debuglog.c	14 Apr 2004 14:34:37 -0000	1.21
@@ -296,7 +296,9 @@
 	case SCARD_E_SERVICE_STOPPED:
 		strncpy(strError, "Service was stopped.", sizeof(strError)-1);
 		break;
-
+	default:
+		snprintf(strError, sizeof(strError)-1, "Unkown error: 0x%08lX",
+			pcscError);
 	};
 
 	/* add a null byte */