svn commit: r191134 - head/sys/geom/part

Marcel Moolenaar marcel at FreeBSD.org
Thu Apr 16 05:52:48 UTC 2009


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
 


More information about the svn-src-head mailing list