mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -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:
@ -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);
|
||||
|
Reference in New Issue
Block a user