Display label properly.

This commit is contained in:
Rob Landley 2022-05-03 03:22:51 -05:00
parent 3e6797bb69
commit 14efda08aa

View File

@ -42,7 +42,7 @@ void mkswap_main(void)
if (CFG_TOYBOX_FREE) close(fd);
if (TT.L) sprintf(toybuf, ", LABEL=%s", label);
if (TT.L) sprintf(toybuf, ", LABEL=%.15s", TT.L);
else *toybuf = 0;
printf("Swapspace size: %luk%s, UUID=%s\n",
pages*(unsigned long)(pagesize/1024),