]> git.sesse.net Git - ffmpeg/commit
avformat/aadec: Replace strncpy by av_strlcpy
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 2 Mar 2021 09:00:18 +0000 (10:00 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 5 Mar 2021 08:16:00 +0000 (09:16 +0100)
commit491a30c79cf7e1fa7e32aeb4968a8c63af6e0534
tree9ffb47a025c2985438c8a00e0309de43fa21ca1e
parent80038fd524cbed9fda1c8db2e2f4436622de9706
avformat/aadec: Replace strncpy by av_strlcpy

While this usage of strncpy is correct, said function nevertheless has
the disadvantage of not automatically ensuring that the destination
string is zero-terminated. So av_strlcpy should be preferred.
This also removes a -Wstringop-truncation warning from GCC (it doesn't
matter whether the buffer is truncated, as long as it can fit all
the names of the supported codecs).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/aadec.c