From 94eca7874e2c60cad84b344feaaa66418b1b47ef Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Tue, 12 Aug 2008 20:00:31 +0200 Subject: fixes depth check in format_string (can be 0) --- src/plist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plist.c b/src/plist.c index e64cff2..ed09354 100644 --- a/src/plist.c +++ b/src/plist.c @@ -49,7 +49,7 @@ char* format_string(const char* buf, int cols, int depth) int i = 0; int j = 0; - assert(cols >= 0); + assert(cols > 0); assert(depth >= 0); // Inserts new lines and tabs at appropriate locations -- cgit v1.1-32-gdbae