From 4d369413e19e5195fe4babcb74980c4cff21df03 Mon Sep 17 00:00:00 2001 From: Matthew D Fleming Date: Fri, 10 Sep 2010 16:42:16 +0000 Subject: Replace sbuf_overflowed() with sbuf_error(), which returns any error code associated with overflow or with the drain function. While this function is not expected to be used often, it produces more information in the form of an errno that sbuf_overflowed() did. --- sys/security/audit/audit_bsm_klib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/security') diff --git a/sys/security/audit/audit_bsm_klib.c b/sys/security/audit/audit_bsm_klib.c index c8d40356cfe8..f26f86cabc94 100644 --- a/sys/security/audit/audit_bsm_klib.c +++ b/sys/security/audit/audit_bsm_klib.c @@ -548,7 +548,7 @@ audit_canon_path(struct thread *td, char *path, char *cpath) * the supplied buffer being overflowed. Check to see if this is the * case. */ - if (sbuf_overflowed(&sbf) != 0) { + if (sbuf_error(&sbf) != 0) { cpath[0] = '\0'; return; } -- cgit v1.2.3