From a136ca542ce58ff2665cd3926da3ec34f890180d Mon Sep 17 00:00:00 2001 From: Scott Long Date: Thu, 26 Jan 2017 20:18:03 +0000 Subject: [PATCH] Fix a development mis-merge from r312827 Sponsored by: Netflix --- sys/cam/cam_xpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 4f4532354e86..7754e9b1487a 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -3727,9 +3727,9 @@ xpt_print(struct cam_path *path, const char *fmt, ...) { va_list ap; struct sbuf sb; - char buffer[XPT_PRINT_MAXLEN]; + char buffer[XPT_PRINT_LEN]; - sbuf_new(&sb, buffer, XPT_PRINT_MAXLEN, SBUF_FIXEDLEN); + sbuf_new(&sb, buffer, XPT_PRINT_LEN, SBUF_FIXEDLEN); xpt_path_sbuf(path, &sb); va_start(ap, fmt);