1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-09 23:28:06 -05:00

Fix completely broken dialog-building functions.

The loops that were supposed to count up the number of buttons in the
variadic argument list forgot to increment the counter.

On the other hand, these functions aren't actually _used_ anywhere in
the current code - looks as if commit 616c837cf was the last time they
were seen - but manual dialog stuff like PuTTYgen might yet find a use
for them in future.
This commit is contained in:
Simon Tatham 2017-02-14 21:15:02 +00:00
parent 2247065d0f
commit 50965a6411

View File

@ -301,6 +301,7 @@ void bareradioline(struct ctlpos *cp, int nacross, ...)
if (!btext)
break;
(void) va_arg(ap, int); /* id */
nbuttons++;
}
va_end(ap);
buttons = snewn(nbuttons, struct radio);
@ -331,6 +332,7 @@ void radiobig(struct ctlpos *cp, char *text, int id, ...)
if (!btext)
break;
(void) va_arg(ap, int); /* id */
nbuttons++;
}
va_end(ap);
buttons = snewn(nbuttons, struct radio);