diff options
author | Kalev Lember <kalevlember@gmail.com> | 2013-07-10 16:23:30 (GMT) |
---|---|---|
committer | Kalev Lember <kalevlember@gmail.com> | 2013-07-10 16:23:30 (GMT) |
commit | 8cf5b95b4405d4f6a14e1c2b75414b4c050669b0 (patch) | |
tree | bed5ff0fac8629f81a7db3be3d6541508f756775 /utils.c | |
parent | c65c95bf203ecd80923b5581f97db980d08ab807 (diff) | |
download | powwow-8cf5b95b4405d4f6a14e1c2b75414b4c050669b0.zip powwow-8cf5b95b4405d4f6a14e1c2b75414b4c050669b0.tar.gz powwow-8cf5b95b4405d4f6a14e1c2b75414b4c050669b0.tar.bz2 |
wrap_print: Fix an endless loop with 0-length strings
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -519,7 +519,7 @@ static void wrap_print __P1 (char *,s) ansibug = 1; #endif - while (l >= cols_1 - col0) { + while (l >= cols_1 - col0 && *s) { p = buf; m = 0; state = NORM; lp = ls = NULL; |