From b8e665dceed43c816018eaa2dd52a8ea4ccdd6f5 Mon Sep 17 00:00:00 2001 From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Sat, 16 Aug 2025 14:59:00 -0500 Subject: [PATCH] =?UTF-8?q?[tmpnam-s-wtmpnam-s.md]=20`char=20name1[L=5Ftmp?= =?UTF-8?q?nam=5Fs];`=20=E2=86=92=20`char=20name1[L=5Ftmpnam=5Fs];`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As per https://pubs.opengroup.org/onlinepubs/9699919799/functions/tmpnam.html --- docs/c-runtime-library/reference/tmpnam-s-wtmpnam-s.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/c-runtime-library/reference/tmpnam-s-wtmpnam-s.md b/docs/c-runtime-library/reference/tmpnam-s-wtmpnam-s.md index bb547ff8fe..9250f38469 100644 --- a/docs/c-runtime-library/reference/tmpnam-s-wtmpnam-s.md +++ b/docs/c-runtime-library/reference/tmpnam-s-wtmpnam-s.md @@ -96,7 +96,7 @@ For more compatibility information, see [Compatibility](../compatibility.md). int main( void ) { - char name1[L_tmpnam_s]; + char name1[L_tmpnam_s + 1]; errno_t err; int i;