From owner-p4-projects Sat Sep 28 10:42:12 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 477B537B404; Sat, 28 Sep 2002 10:42:10 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E86B837B401 for ; Sat, 28 Sep 2002 10:42:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A159543E86 for ; Sat, 28 Sep 2002 10:42:09 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8SHg9Co066842 for ; Sat, 28 Sep 2002 10:42:09 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8SHg9AT066839 for perforce@freebsd.org; Sat, 28 Sep 2002 10:42:09 -0700 (PDT) Date: Sat, 28 Sep 2002 10:42:09 -0700 (PDT) Message-Id: <200209281742.g8SHg9AT066839@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 18282 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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