diff --git a/lib/stringlist.c b/lib/stringlist.c index b965aa0..a8af15d 100644 --- a/lib/stringlist.c +++ b/lib/stringlist.c @@ -87,8 +87,8 @@ return; num = 80 / (len + 1); - if (len == 0) - len = 1; + if (num == 0) + num = 1; i = 0; list_for_each_entry(entry, &sl->list, list) {