On Mon, Jul 24, 2006 at 02:25:32PM +0200, Roman Zippel wrote:
> Hi,
>
> On Mon, 24 Jul 2006, Sam Ravnborg wrote:
>
> > +static int set_color_theme(const char *theme)
> > +{
> > + int use_color = 1;
> > + if (!strncasecmp (theme, "blackbg", sizeof("blackbg")))
> > + set_blackbg_theme();
> > + else if (!strncasecmp(theme, "mono", sizeof("mono")))
> > + use_color = 0;
> > + return use_color;
> > +}
>
> This segfaults if MENUCONFIG_COLOR isn't set.
Thanks - will fix. I expected str* to be NULL safe...
Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]