summaryrefslogtreecommitdiffstats
path: root/src/apk.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-06-08 10:24:21 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-06-08 10:24:21 +0300
commitefe90d43c8de624f771d726d8412bfbc30002afa (patch)
treefcc182e43257e40183b8e2d4ea024e9c359d5db9 /src/apk.c
parentf85d87e5f9d0572bbb04ecb9aaad47f9c15b1703 (diff)
downloadapk-tools-efe90d43c8de624f771d726d8412bfbc30002afa.tar.bz2
apk-tools-efe90d43c8de624f771d726d8412bfbc30002afa.tar.xz
state: fix error printing
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index 76c1e4e..2273fa4 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -105,6 +105,8 @@ int apk_print_indented(struct apk_indent *i, apk_blob_t blob)
if (i->x + blob.len + 1 >= wrap_length) {
i->x = i->indent;
printf("\n%*s", i->indent - 1, "");
+ } else if (i->x+1 < i->indent) {
+ printf("%*s", i->indent - i->x - 1, "");
}
i->x += printf(" %.*s", blob.len, blob.ptr);
return 0;