Skip to content

Commit 03ac7e2

Browse files
authored
Update C6064 warning message for clarity
Clarified the warning message about missing integer arguments and emphasized the importance of matching argument types.
1 parent 64890b0 commit 03ac7e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/code-quality/c6064.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ helpviewer_keywords: ["C6064"]
99

1010
> Missing integer argument to '*function-name*' corresponding to conversion specifier '*number*'
1111
12-
This warning indicates that the code doesn't provide enough arguments to match a format string and one of the missing arguments is an integer.
13-
1412
## Remarks
1513

16-
Supplying too few arguments to a format function leads to undefined behavior because the function attempts to read values that aren't passed. Possible consequences include incorrect output, crashes, or even security vulnerabilities such as information leaks.
14+
This warning indicates that the code doesn't provide enough arguments to match a format string and one of the missing arguments is an integer.
15+
16+
Providing too few arguments to a format function leads to undefined behavior because the function attempts to read values that aren't passed. Possible consequences include incorrect output, crashes, or even security vulnerabilities such as information leaks.
1717

1818
To ensure stability and safety, always match the number and types of arguments to the format specifiers in the string.
1919

0 commit comments

Comments
 (0)