diff options
author | Jonathan Beck | 2008-08-12 20:00:31 +0200 |
---|---|---|
committer | Jonathan Beck | 2008-08-21 18:43:02 +0200 |
commit | 94eca7874e2c60cad84b344feaaa66418b1b47ef (patch) | |
tree | ef2bfcf013a0a09b6b98f55b714753a9fb3983e6 /src/plist.c | |
parent | 460c091cd4743905e062e9b24b1d5d101d96b5f8 (diff) | |
download | libplist-94eca7874e2c60cad84b344feaaa66418b1b47ef.tar.gz libplist-94eca7874e2c60cad84b344feaaa66418b1b47ef.tar.bz2 |
fixes depth check in format_string (can be 0)
Diffstat (limited to 'src/plist.c')
-rw-r--r-- | src/plist.c | 2 |
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 |