]> git.sesse.net Git - ffmpeg/commit
lavf/matroskadec: Do not use strncat() to limit copying a one-char constant.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 10 Dec 2018 00:55:15 +0000 (01:55 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 10 Dec 2018 23:40:26 +0000 (00:40 +0100)
commit73abde61bb07a302bd1c47620f97b9d08148f158
tree52761e2ee34ac78ddf830eac1cb5b5f1d23e2347
parent03beac5b97e8fd77c5fef6123183dc00f5d3c7fd
lavf/matroskadec: Do not use strncat() to limit copying a one-char constant.

Instead add the character to the snprintf above as suggested by Mark.

Silences a warning:
libavformat/matroskadec.c: In function 'webm_dash_manifest_cues':
libavformat/matroskadec.c:3947:13: warning: 'strncat' specified bound 1 equals source length [-Wstringop-overflow=]
             strncat(buf, ",", 1);
             ^~~~~~~~~~~~~~~~~~~~
libavformat/matroskadec.c