From ab6f1c382c24465548ad57609b9ee3185479efd4 Mon Sep 17 00:00:00 2001 From: bzt Date: Sat, 13 Jul 2024 13:07:54 +0200 Subject: [PATCH] Fixed issue #54 --- uefi/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uefi/string.c b/uefi/string.c index 5a00aa6..a6d0348 100644 --- a/uefi/string.c +++ b/uefi/string.c @@ -167,7 +167,7 @@ char_t *strncat(char_t *dst, const char_t *src, size_t n) int strncmp(const char_t *s1, const char_t *s2, size_t n) { - const char_t *e = s1+n; + const char_t *e = s1+n-1; if(s1 && s2 && s1!=s2 && n>0) { while(s1