aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-09-09 14:07:20 +0100
committerMans Rullgard <mans@mansr.com>2012-10-03 14:36:51 +0100
commit05e209c04ceda37c9a6921f17955c841b93419a2 (patch)
treef445c5ccaabb6b500fbc081890bbaeb8b1315239
parent75366a504dfc30deadeac71c35e3c444275986f9 (diff)
downloadffmpeg-05e209c04ceda37c9a6921f17955c841b93419a2.tar.gz
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 <mans@mansr.com>
-rw-r--r--libavutil/internal.h2
1 files changed, 0 insertions, 2 deletions
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