lib: sbi: Fix sbi_strnlen wrong count decrement
authorRahul Pathak <rpathak@ventanamicro.com>
Tue, 13 Sep 2022 09:47:08 +0000 (15:17 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 13 Sep 2022 11:47:10 +0000 (17:17 +0530)
commit49372f2691a006d5a8d424b5a90be23539b06067
treeb237bcc7dcff9f39df98c35b4bfe5773e22480ec
parent8ce486a781f61941c136efd507a91677f34da713
lib: sbi: Fix sbi_strnlen wrong count decrement

count(maxlen) should not be decremented here

Fixes: 1901e8a287bc ("platform: Add minimal libc support.")
Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_string.c