diff options
author | Alex Converse | 2011-05-03 11:21:49 -0700 |
---|---|---|
committer | Alex Converse | 2011-05-08 12:49:07 -0700 |
commit | 15695541538ae118ffedb8e8c821d242caaa0be4 (patch) | |
tree | 693fb3f80261e3a6fb1fbb20f80279eae672c340 /libavutil/internal.h | |
parent | b58e29857230eb59cfec4642522258a965f2c440 (diff) |
Ban strncpy() it's too easy to misuse.
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |