Date: Thu, 16 Apr 2009 05:52:48 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r191134 - head/sys/geom/part Message-ID: <200904160552.n3G5qmGc069962@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Thu Apr 16 05:52:47 2009 New Revision: 191134 URL: http://svn.freebsd.org/changeset/base/191134 Log: Precision '*' expects an int and strlen() returns a size_t. Compensate. Modified: head/sys/geom/part/g_part_ebr.c Modified: head/sys/geom/part/g_part_ebr.c ============================================================================== --- head/sys/geom/part/g_part_ebr.c Thu Apr 16 04:05:39 2009 (r191133) +++ head/sys/geom/part/g_part_ebr.c Thu Apr 16 05:52:47 2009 (r191134) @@ -324,7 +324,7 @@ g_part_ebr_fullname(struct g_part_table break; idx++; } - sbuf_printf(sb, "%.*s%u", strlen(pfx) - 1, pfx, idx); + sbuf_printf(sb, "%.*s%u", (int)strlen(pfx) - 1, pfx, idx); } #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904160552.n3G5qmGc069962>