summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-03-28 21:12:43 +0000
committerimp <imp@FreeBSD.org>2007-03-28 21:12:43 +0000
commitc38f335208261209eeb4f6607f8bf4b9aeeefa97 (patch)
tree1717a78555a2942244bd1b522f51883202ab6e62 /sys/boot
parentca1ed8272e844b0b0e686997b902319bd9398957 (diff)
downloadFreeBSD-src-c38f335208261209eeb4f6607f8bf4b9aeeefa97.zip
FreeBSD-src-c38f335208261209eeb4f6607f8bf4b9aeeefa97.tar.gz
Fix off by one error in length of the string.
Submitted by: jhay
Diffstat (limited to 'sys/boot')
-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