fixed dump size

This commit is contained in:
Andrew Tridgell 2012-02-15 10:44:09 +11:00
parent 089db43183
commit 048aed5427

View File

@ -123,7 +123,7 @@ main(int argc, char *argv[])
printf("%04x: type %u (%s) key %u group_element %u size %d\n ", printf("%04x: type %u (%s) key %u group_element %u size %d\n ",
index, var->type, type_names[var->type], var->key, var->group_element, size); index, var->type, type_names[var->type], var->key, var->group_element, size);
index += sizeof(*var); index += sizeof(*var);
for (i = 0; i <= size; i++) { for (i = 0; i < size; i++) {
printf(" %02x", eeprom[index + i]); printf(" %02x", eeprom[index + i]);
} }
printf("\n"); printf("\n");