• Andreas Rheinhardt's avatar
    avformat/aadec: Replace strncpy by av_strlcpy · 491a30c7
    Andreas Rheinhardt authored
    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: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    491a30c7
aadec.c 14.5 KB