[parted-devel] Fix off-by-one error in previous change.
Jim Meyering
jim at meyering.net
Fri May 25 17:04:55 UTC 2007
Imagine my surprise when t3000 started failing.
Fix off-by-one error in previous change.
* parted/strlist.c (str_list_print_wrap): Don't output a space
unconditionally.
diff --git a/parted/strlist.c b/parted/strlist.c
index b5d2ba4..7739e9b 100644
--- a/parted/strlist.c
+++ b/parted/strlist.c
@@ -495,7 +495,7 @@ str_list_print_wrap (const StrList* list, int line_length, int offset,
line_left = line_length - indent;
if (walk->next || *str)
- printf ("\n%*s", indent, " ");
+ printf ("\n%*s", indent, "");
else if (line_break)
putchar ('\n');
}
More information about the parted-devel
mailing list