summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-12 20:00:31 +0200
committerGravatar Jonathan Beck2008-08-21 18:43:02 +0200
commit94eca7874e2c60cad84b344feaaa66418b1b47ef (patch)
treeef2bfcf013a0a09b6b98f55b714753a9fb3983e6 /src
parent460c091cd4743905e062e9b24b1d5d101d96b5f8 (diff)
downloadlibplist-94eca7874e2c60cad84b344feaaa66418b1b47ef.tar.gz
libplist-94eca7874e2c60cad84b344feaaa66418b1b47ef.tar.bz2
fixes depth check in format_string (can be 0)
Diffstat (limited to 'src')
-rw-r--r--src/plist.c2
1 files changed, 1 insertions, 1 deletions
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