Ticket #28217: patch-motifutils.c
File patch-motifutils.c, 365 bytes (added by mlund (Mikael Lund), 14 years ago) |
---|
Line | |
---|---|
1 | --- src/motifutils.c 2011-01-30 19:39:41.000000000 +0100 |
2 | +++ src/motifutils.c 2011-01-30 19:39:47.000000000 +0100 |
3 | @@ -121,7 +121,7 @@ |
4 | |
5 | i = 0; |
6 | va_start(var, nchoices); |
7 | - while ((s = va_arg(var, char *)) != NULL) { |
8 | + while ((s = va_arg(var, char *)) != NULL && i<nchoices) { |
9 | retval[i + 2] = XmCreatePushButton(retval[1], s, NULL, 0); |
10 | i++; |
11 | } |