Re: [PATCH] nconfig V3

From: Nir Tzachar
Date: Sun Nov 30 2008 - 01:44:21 EST


Hello.

On Sun, Nov 30, 2008 at 1:02 AM, Carlos R. Mafra <crmafra2@xxxxxxxxx> wrote:
> On Sat 29.Nov'08 at 23:42:39 +0200, Nir Tzachar wrote:
>> [...]
>> +static ITEM *btns_items[BTN_MAX];

Thanks. This should be btns_items[BTN_MAX+1];

> [...]
>
>> + btns_items[BTN_MAX] = NULL;
>
> gcc warns about this here
>
> scripts/kconfig/nconf.c:1311: warning: array subscript is above array bounds
>

Cheers.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/