Files
Aerofoil/gpr2gpa
Diomendius 41b96494c2 Fix double-use of va_list in AppendFmt
AppendFmt calls vsnprintf twice, first to check the size of the
formatted string, then to write it for real, but it used the same
va_list for both calls, so the second call got an invalid va_list after
the first call had already consumed all its arguments.

This is UB and at least on Linux makes the second call print garbage. I
presume Windows implements va_list differently such that this somehow
worked correctly, because on Linux, all of the dialog items get parsed
into invalid JSON due to this bug, with lines like this (note the
missing second array element and closing bracket):
    "pos" : [ -55947262,
2024-07-31 20:23:34 +12:00
..
2023-08-26 14:06:14 -04:00
2021-04-28 01:46:07 -04:00
2021-05-11 21:32:00 -04:00
2024-07-31 20:21:47 +12:00