From 7d216923011eff6fad5a891e0ccb9b9cce959f47 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Feb 2012 10:44:09 +1100 Subject: [PATCH] fixed dump size --- libraries/AP_Common/tools/eedump_apparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Common/tools/eedump_apparam.c b/libraries/AP_Common/tools/eedump_apparam.c index 54374b38ba..3e64bb5257 100644 --- a/libraries/AP_Common/tools/eedump_apparam.c +++ b/libraries/AP_Common/tools/eedump_apparam.c @@ -123,7 +123,7 @@ main(int argc, char *argv[]) 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 += sizeof(*var); - for (i = 0; i <= size; i++) { + for (i = 0; i < size; i++) { printf(" %02x", eeprom[index + i]); } printf("\n");