[OpenBIOS] r117 - openbios-devel/drivers

Segher Boessenkool segher at kernel.crashing.org
Sat Apr 7 14:00:51 CEST 2007


>      if (size > OBIO_CMDLINE_MAX) size = OBIO_CMDLINE_MAX;
>      memcpy(obio_cmdline, nv_info.cmdline, size);
> -    obio_cmdline[size-1] = '\0';
> +    obio_cmdline[size] = '\0';

Looks like you need to change the declaration of
"obio_cmdline[]" or the maximum value "size" is
clamped to, as well?


Segher




More information about the OpenBIOS mailing list