From 05e209c04ceda37c9a6921f17955c841b93419a2 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 9 Sep 2012 14:07:20 +0100 Subject: 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: Mans Rullgard --- libavutil/internal.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavutil/internal.h') diff --git a/libavutil/internal.h b/libavutil/internal.h index 6862000722..e61a629f05 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -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 -- cgit v1.2.3