Skip to content
Snippets Groups Projects
Commit 05e209c0 authored by Mans Rullgard's avatar Mans Rullgard
Browse files

Allow use of strncpy()


There are cases where strncpy() does exactly what is required.
A blanket ban forces more convoluted solutions to be used in those
cases and has been a cause of bugs.

Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent 75366a50
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,6 @@
#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
#undef strcat
#define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat
#undef strncpy
#define strncpy strncpy_is_forbidden_due_to_security_issues_use_av_strlcpy
#undef exit
#define exit exit_is_forbidden
#undef printf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment