Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2001 12:32:19 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/acpica acpi_cmbat.c
Message-ID:  <200102262032.f1QKWJ017102@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2001/02/26 12:32:19 PST

  Modified files:
    sys/dev/acpica       acpi_cmbat.c 
  Log:
  When ensuring the destination buffer is truncated for a string obtained
  from a BIF, use the size of the destinatino buffer, not the length of the
  string to determine where to put the nul char.  As a side effect, the
  old code would truncate the string by one character while it was possibly
  overflowing the buffer.
  
  Revision  Changes    Path
  1.4       +2 -2      src/sys/dev/acpica/acpi_cmbat.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102262032.f1QKWJ017102>