PERFORCE change 84221 for review

Robert Watson rwatson at FreeBSD.org
Sat Sep 24 19:50:55 GMT 2005


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

Change 84221 by rwatson at rwatson_peppercorn on 2005/09/24 19:50:45

	Catch another instance of the assumption that the path in a buffer
	returned by vn_fullpath() will be aligned to the beginning of the
	buffer.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#39 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#39 (text+ko) ====

@@ -2413,7 +2413,7 @@
 	 */
 	if (vn_fullpath(td, vp, &retbuf, &freebuf) == 0) {
 		/* Copy and free buffer allocated by vn_fullpath() */
-		bcopy(retbuf, *pathp, MAXPATHLEN);
+		strlcpy(*pathp, retbuf, MAXPATHLEN);
 		free(freebuf, M_TEMP); 
 	} else {
 		(*pathp)[0] = '\0';
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list