From 556d5a9798b701f3ec15d40f74f460121b65f1b6 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 3 Jul 2023 13:56:24 +0200 Subject: [PATCH] string: Revise SAL for strnlen Signed-off-by: Simon Rozman --- include/stdex/string.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdex/string.hpp b/include/stdex/string.hpp index a7c193218..c92eb247f 100644 --- a/include/stdex/string.hpp +++ b/include/stdex/string.hpp @@ -165,7 +165,7 @@ namespace stdex /// \return Number of characters excluding zero terminator in the string. /// template - inline size_t strnlen(_In_z_ const T* str, _In_ size_t count) + inline size_t strnlen(_In_reads_or_z_opt_(count) const T* str, _In_ size_t count) { assert(str); size_t i;