diff options
author | Alex Converse <aconverse@google.com> | 2011-05-03 11:19:31 -0700 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-05-03 21:20:13 -0700 |
commit | 1a5e4fd8c5b99478b4e08a69261930bb12aa948b (patch) | |
tree | 305d316548f3f399606e2659ee0fec7e2a13ae59 /libavutil/log.c | |
parent | aab6374bbe2b6ce4ca82141be6a5b7b8875bf051 (diff) | |
download | ffmpeg-1a5e4fd8c5b99478b4e08a69261930bb12aa948b.tar.gz |
Replace strncpy() with av_strlcpy().
Diffstat (limited to 'libavutil/log.c')
-rw-r--r-- | libavutil/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/log.c b/libavutil/log.c index cfeb21cd5a..ddfd31f6c3 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -26,6 +26,7 @@ #include <unistd.h> #include <stdlib.h> +#include "avstring.h" #include "avutil.h" #include "log.h" @@ -120,7 +121,7 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) count=0; } colored_fputs(av_clip(level>>3, 0, 6), line); - strncpy(prev, line, sizeof line); + av_strlcpy(prev, line, sizeof line); } static void (*av_log_callback)(void*, int, const char*, va_list) = av_log_default_callback; |