j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: stepan Date: 2007-04-09 14:19:41 +0200 (Mon, 09 Apr 2007) New Revision: 119
Modified: openbios-devel/drivers/obio.c Log: fix from blueswirl
Modified: openbios-devel/drivers/obio.c =================================================================== --- openbios-devel/drivers/obio.c 2007-04-09 12:17:51 UTC (rev 118) +++ openbios-devel/drivers/obio.c 2007-04-09 12:19:41 UTC (rev 119) @@ -341,7 +341,8 @@ kernel_image = nv_info.kernel_image; kernel_size = nv_info.kernel_size; size = nv_info.cmdline_size; - if (size > OBIO_CMDLINE_MAX) size = OBIO_CMDLINE_MAX; + if (size > OBIO_CMDLINE_MAX - 1) + size = OBIO_CMDLINE_MAX - 1; memcpy(obio_cmdline, nv_info.cmdline, size); obio_cmdline[size] = '\0'; cmdline = obio_cmdline;