Skip to content

Commit 8210867

Browse files
author
Matthew Sebolt
authored
Update strncpy-strncpy-l-wcsncpy-wcsncpy-l-mbsncpy-mbsncpy-l.md
1 parent dd45484 commit 8210867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/c-runtime-library/reference/strncpy-strncpy-l-wcsncpy-wcsncpy-l-mbsncpy-mbsncpy-l.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ For additional platform compatibility information, see [Compatibility](../../c-r
151151

152152
## Example
153153

154-
The following example demonstrates the use of **`strncpy`** and how it can be misused to cause program bugs and security issues. The compiler generates a warning for each call to **`strncpy`** similar to **`crt_strncpy_x86.c`(15) : warning C4996: '`strncpy`': This function or variable may be unsafe. Consider using `strncpy_s` instead. To disable deprecation, use `_CRT_SECURE_NO_WARNINGS`. See online help for details.**
154+
The following example demonstrates the use of **`strncpy`** and how it can be misused to cause program bugs and security issues. The compiler generates a warning for each call to **`strncpy`** similar to **`crt_strncpy_x86.c(15)` : warning C4996: '`strncpy`': This function or variable may be unsafe. Consider using `strncpy_s` instead. To disable deprecation, use `_CRT_SECURE_NO_WARNINGS`. See online help for details.**
155155

156156
```C
157157
// crt_strncpy_x86.c

0 commit comments

Comments
 (0)