PERFORCE change 18282 for review
Robert Watson
rwatson at freebsd.org
Sat Sep 28 17:42:09 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18282
Change 18282 by rwatson at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list