Skip to content

Commit 4968532

Browse files
Updated C28159
Fixed comment
1 parent 8a1c95b commit 4968532

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/code-quality/c28159.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ The following code example generates this warning. This issue is due to the use
3030

3131
```cpp
3232
char buff[MAX_PATH];
33-
// if strlen(input) > MAX_PATH
34-
// leads to buffer overrun
35-
// if strlen(input) > MAX_PATH, this call leads to buffer overrun
36-
OemToChar(buff, input);
33+
OemToChar(buff, input); // If strlen(input) > MAX_PATH, this call leads to buffer overrun
3734
```
3835
3936
The following code example avoids this warning:

0 commit comments

Comments
 (0)