From efe90d43c8de624f771d726d8412bfbc30002afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Tue, 8 Jun 2010 10:24:21 +0300 Subject: state: fix error printing --- src/apk.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/apk.c') 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; -- cgit v1.2.3