diff --git a/src/rpmostree-builtin-rpm.c b/src/rpmostree-builtin-rpm.c index 95d709d9..946fe3ad 100644 --- a/src/rpmostree-builtin-rpm.c +++ b/src/rpmostree-builtin-rpm.c @@ -380,11 +380,14 @@ pkg_print (GFile *root, Header pkg, { gsize plen = strlen (nevra); gsize rlen = strlen (from_repo) + 1; + int off = 0; --align; // hacky ... for leading spaces. + off = align - (plen + rlen); + if (align > (plen + rlen)) - printf ("%s%*s@%s\n", nevra, align - (plen + rlen), "", from_repo); + printf ("%s%*s@%s\n", nevra, off, "", from_repo); else align = 0; }