]> git.sesse.net Git - x264/commit
x264_vfprintf: use va_copy
authorHenrik Gramner <henrik@gramner.com>
Sun, 26 Jul 2015 22:08:38 +0000 (00:08 +0200)
committerAnton Mitrofanov <BugMaster@narod.ru>
Tue, 18 Aug 2015 21:55:29 +0000 (00:55 +0300)
commit53b3b747e22f53204f6efb5106ab4a5a8eb57626
treeb337b1da881cf355d8d859ebb64fc43cf078090d
parent59e7ded846a832125cb533aadff9895487771ea7
x264_vfprintf: use va_copy

It's undefined behavior to use the same va_list twice.

This most likely didn't cause any issues in practice since the string would
have to be larger than 4 KiB to trigger the fallback path.

Use workaround for ICL as it doesn't define va_copy even for C99.
common/osdep.c
common/osdep.h