• M
    Use _snprintf for snprinf in Microsoft C. · 25e4a3da
    Mark Adler 提交于
    More than a decade later, Microsoft C does not support the C99
    standard.  It's good that _snprintf has a different name, since it
    does not guarantee that the result is null terminated, as does
    snprintf.  However where _snprintf is used under Microsoft C, the
    destination string is assured to be long enough, so this will not
    be a problem.  This occurs in two places, both in gzlib.c.  Where
    sprintf functionality is needed by gzprintf, vsnprintf is used in
    the case of Microsoft C.
    25e4a3da
gzguts.h 6.2 KB