Precision '*' expects an int and strlen() returns a size_t.
Compensate.
This commit is contained in:
parent
6ad9a99f21
commit
cce94b6583
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191134
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user