PERFORCE change 100020 for review

John Birrell jb at FreeBSD.org
Mon Jun 26 05:16:57 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=100020

Change 100020 by jb at jb_freebsd2 on 2006/06/26 05:16:11

	Ensure that the string in the buffer really is zero terminated.

Affected files ...

.. //depot/projects/dtrace/src/sys/boot/common/boot.c#3 edit

Differences ...

==== //depot/projects/dtrace/src/sys/boot/common/boot.c#3 (text+ko) ====

@@ -194,6 +194,9 @@
 				 * input line to the environment.
 				 */
 				if (n_buf > 0 && (p = strchr(p_buf, '=')) != NULL) {
+					/* Zero terminate the value. */
+					p_buf[n_buf] = '\0';
+
 					/* Zero terminate the name. */
 					*p = '\0';
 


More information about the p4-projects mailing list