summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/boot/arm/at91/libat91/strlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/arm/at91/libat91/strlen.c b/sys/boot/arm/at91/libat91/strlen.c
index 47009b1..35de892 100644
--- a/sys/boot/arm/at91/libat91/strlen.c
+++ b/sys/boot/arm/at91/libat91/strlen.c
@@ -64,5 +64,5 @@ p_strlen(const char *buffer)
const char *ptr = buffer;
while (*ptr++)
continue;
- return (ptr - buffer);
+ return (ptr - buffer - 1);
}
OpenPOWER on IntegriCloud