diff --git a/eepromutils/eepmake.c b/eepromutils/eepmake.c index 8cd5369..33a4132 100644 --- a/eepromutils/eepmake.c +++ b/eepromutils/eepmake.c @@ -155,7 +155,7 @@ void parse_data(char* c) { *data = (char *) realloc(*data, data_cap); } - sscanf(c, "%2x", (unsigned int *)*data+data_len++); + sscanf(c, "%2hhX", (unsigned char *)*data+data_len++); *(c+2) = s; c+=2;