[SV 40361] Don't use vsnprintf(), which is an ISO C99 function.
authorPaul Smith <psmith@gnu.org>
Sun, 24 Nov 2013 03:23:52 +0000 (22:23 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 24 Nov 2013 03:23:52 +0000 (22:23 -0500)
commit757849cd93a9bc361a5113e3aaafe516773aad44
treed6acd1705fe25873b43fa7d16b736e44b6191ab7
parent9d58570c77240fed53d1f88217877f8e778f4bb2
[SV 40361] Don't use vsnprintf(), which is an ISO C99 function.

* output.c (error, fatal, message): Take an extra argument specifying
how many bytes are used by the formatted arguments.
(get_buffer): New function that allocates the requested buffer size.
Remove msc_vsnprintf(), vfmtconcat(), and fmtconcat() as unneeded.
* makeint.h: Declare various helper macros for generating output.
* *.c: Change all error(), fatal(), message() calls to use the macros,
or pass the extra length argument directly.
22 files changed:
amiga.c
ar.c
arscan.c
commands.c
dir.c
expand.c
file.c
function.c
job.c
job.h
load.c
main.c
makeint.h
misc.c
output.c
read.c
remake.c
remote-cstms.c
rule.c
variable.c
variable.h
vmsjobs.c