From 15695541538ae118ffedb8e8c821d242caaa0be4 Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Tue, 3 May 2011 11:21:49 -0700 Subject: Ban strncpy() it's too easy to misuse. --- libavutil/internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/internal.h') diff --git a/libavutil/internal.h b/libavutil/internal.h index 37bc6810f6..e890ae7083 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -137,6 +137,8 @@ #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 #ifndef LIBAVFORMAT_BUILD -- cgit v1.2.1