Precision '*' expects an int and strlen() returns a size_t.

Compensate.
This commit is contained in:
Marcel Moolenaar 2009-04-16 05:52:47 +00:00
parent 6ad9a99f21
commit cce94b6583
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191134

View File

@ -324,7 +324,7 @@ g_part_ebr_fullname(struct g_part_table *table, struct g_part_entry *entry,
break;
idx++;
}
sbuf_printf(sb, "%.*s%u", strlen(pfx) - 1, pfx, idx);
sbuf_printf(sb, "%.*s%u", (int)strlen(pfx) - 1, pfx, idx);
}
#endif