fixed compiler warnings

This commit is contained in:
roel@libnfc.org 2013-10-03 14:36:42 +00:00
commit f66021cf48
3 changed files with 3 additions and 4 deletions

View file

@ -596,9 +596,8 @@ static void waitCmd(uint8_t iSelect)
return;
hexout = (char *)malloc(iLen * 3 + 1);
if (hexout != NULL) {
uint8_t first, second;
for (int i = 0; i < iLen; i++) { // data in hex
sprintf(&hexout[i * 3], "%02hX ", recv[i]);
sprintf(&hexout[i * 3], "%02X ", recv[i]);
}
PrintAndLog("%s", hexout);
free(hexout);