Skip to content

Commit 3e4b05c

Browse files
committed
fixup! lib/format.c: implement tostrmode()
1 parent 77e522c commit 3e4b05c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/format.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,13 +671,13 @@ humanize(const struct humanize *h, const struct xbps_fmt *fmt, int64_t d, FILE *
671671
}
672672

673673
static int
674-
tostrmode(const struct xbps_fmt_spec *spec, int64_t d, FILE *fp)
674+
tostrmode(const struct xbps_fmt *fmt, int64_t d, FILE *fp)
675675
{
676-
char buf[64];
676+
char buf[64] = "";
677677
int len;
678678
xbps_strmode(d, buf);
679679
len = strlen(buf);
680-
return xbps_fmt_string(spec, buf, len, fp);
680+
return xbps_fmt_print_string(fmt, buf, len, fp);
681681
}
682682

683683
int

0 commit comments

Comments
 (0)