PERFORCE change 90080 for review

Robert Watson rwatson at FreeBSD.org
Sat Jan 21 06:00:55 PST 2006


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

Change 90080 by rwatson at rwatson_sesame on 2006/01/21 14:00:15

	Fix count of u_chars in one case.
	
	White space synchronization to OpenBSM.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/security/audit/audit_bsm_token.c#5 edit

Differences ...

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

@@ -81,7 +81,7 @@
 	textlen = strlen(text);
 	textlen += 1;
 
-	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + 2 * sizeof(u_char) +
+	GET_TOKEN_AREA(t, dptr, 2 * sizeof(u_char) + 2 * sizeof(u_char) +
 	    sizeof(u_int32_t) + sizeof(u_int16_t) + textlen);
 
 	ADD_U_CHAR(dptr, AUT_ARG32);
@@ -1031,7 +1031,7 @@
 	}
 
 	totlen += count * sizeof(char);	/* nul terminations. */
-	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t)  + totlen);
+	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen);
 
 	ADD_U_CHAR(dptr, AUT_EXEC_ARGS);
 	ADD_U_INT32(dptr, count);


More information about the p4-projects mailing list