Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2002 10:42:09 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 18282 for review
Message-ID:  <200209281742.g8SHg9AT066839@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18282

Change 18282 by rwatson@rwatson_tislabs on 2002/09/28 10:41:07

	Re-order arguments of mac_biba_element_to_string() to match
	snprintf, which it is modeled on.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#115 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#115 (text+ko) ====

@@ -484,7 +484,7 @@
  * have added to the string in the event the string is too short.
  */
 static int
-mac_biba_element_to_string(size_t size, char *string,
+mac_biba_element_to_string(char *string, size_t size,
     struct mac_biba_element *element)
 {
 
@@ -526,7 +526,7 @@
 		left = MAC_MAX_LABEL_ELEMENT_DATALEN;
 
 		if (mac_biba->mb_flags & MAC_BIBA_FLAG_SINGLE) {
-			len = mac_biba_element_to_string(left, curptr,
+			len = mac_biba_element_to_string(curptr, left,
 			    &mac_biba->mb_single);
 			if (len >= left)
 				return (EINVAL);
@@ -541,7 +541,7 @@
 			left -= len;
 			curptr += len;
 
-			len = mac_biba_element_to_string(left, curptr,
+			len = mac_biba_element_to_string(curptr, left,
 			    &mac_biba->mb_rangelow);
 			if (len >= left)
 				return (EINVAL);
@@ -554,7 +554,7 @@
 			left -= len;
 			curptr += len;
 
-			len = mac_biba_element_to_string(left, curptr,
+			len = mac_biba_element_to_string(curptr, left,
 			    &mac_biba->mb_rangehigh);
 			if (len >= left)
 				return (EINVAL);

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




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