made some things better readable

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@358 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-11-13 16:03:29 +00:00
parent c9d4c12a3b
commit d6aff6c0d9

View File

@@ -45,6 +45,7 @@ int picc_encode_rapdu(const unsigned char *inbuf, size_t inlen,
if (!inbuf || inlen > 0xffff || !outbuf)
return 0;
/* length with ':' + for each byte ' ' with hex + '\0' */
length = 5+inlen*3+1;
p = realloc(*outbuf, length);
if (!p) {
@@ -187,7 +188,7 @@ static int picc_receive_capdu(driver_data_t *driver_data,
if (fflush(data->fd) != 0)
ERROR("Warning, fflush failed: %s\n", strerror(errno));
DEBUG("%s\n", data->buf);
DEBUG("%s", data->buf);
/* decode C-APDU */