Skip to content

Commit c3f3e85

Browse files
Updated C28159
Acrolinx fixes
1 parent 5c7ddd5 commit c3f3e85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/code-quality/c28159.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ ms.assetid: fab6cd58-0985-4ef6-89a2-64ed04297437
1111

1212
> Consider using `\**function_name_1*` instead of `\**function_name_2*`. Reason: `\**reason*`
1313
14-
This warning occurs when that you use a function that is semantically equivalent to an alternative, preferred function call.
14+
This warning occurs when you use a function that is semantically equivalent to an alternative, preferred function call.
1515

1616
## Remarks
1717

18-
This is a general warning message; the annotation `__drv_preferredFunction` was used (possibly with a conditional a `__drv_when`() annotation) to flag a bad coding practice.
18+
C28159 is a general warning message; the annotation `__drv_preferredFunction` was used (possibly with a conditional `__drv_when`() annotation) to flag a bad coding practice.
1919

2020
Code analysis name: USE_OTHER_FUNCTION
2121

2222
## Example
2323

24-
The following code example generates this warning. This issue is due to the use of `OemToChar`, which does not validate the buffer size:
24+
The following code example generates this warning. This issue is due to the use of `OemToChar`, which doesn't validate the buffer size:
2525

2626
```cpp
2727
char buff[MAX_PATH];
2828
OemToChar(buff, input); // If strlen(input) > MAX_PATH, this call leads to buffer overrun
2929
```
3030
31-
The following code example avoids this warning by using the recommended alternative `OemToCharBuff`, which takes in the destination buffer size and limits the copy appropriatly:
31+
The following code example avoids this warning by using the recommended alternative `OemToCharBuff`, which takes in the destination buffer size and limits the copy appropriately:
3232
3333
```cpp
3434
char buff[MAX_PATH];

0 commit comments

Comments
 (0)