Fixed Makefile, removed warning.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@9 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -160,7 +160,7 @@ unsigned int read_from_device(unsigned char *inputBuffer) {
|
||||
buf = malloc(length);
|
||||
if(buf == NULL) { fprintf(stderr, "WAHH!\n"); return 0; }
|
||||
int pos=0;
|
||||
while(sscanf(line+(pos*3+5), " %x ", &(buf[pos])) == 1) {
|
||||
while(sscanf(line+(pos*3+5), " %x ", (unsigned int *) &(buf[pos])) == 1) {
|
||||
printf("[%02X]", buf[pos]);
|
||||
if(++pos >= length) break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user