fixed dump size

This commit is contained in:
Andrew Tridgell 2012-02-15 10:44:09 +11:00
parent d2cc6740f0
commit 7d21692301
1 changed files with 1 additions and 1 deletions

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");