• David Flynn's avatar
    win32: fix %zu fixups - dont use mingw's vsnprintf · 151982aa
    David Flynn authored
    Traditionally, MSVCRT has provided vsnprintf as _vsnprintf;
    to 'aid' portability/standards compliance, mingw provide a
    static version of [v]snprintf that is buggy.
    
    The bug manifests as %lx is treated as a 64bit argument not
    32bit, ie consumes two 32bit parameters.  if a %s were to
    follow a %lx, bad things can happen.
    
    Solution: Be sure to use the MSVCRT version, at least it
    behaves as expected
    
    Additionally, make it a bit more obvious when vlc wrappers
    are being called by other wrappers.
    Signed-off-by: default avatarDavid Flynn <davidf@rd.bbc.co.uk>
    Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
    151982aa
vlc_fixups.h 10.3 KB