]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gui.c
string: Clean up for_each_line() and related functions.
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index fb70dd830a2f6233b3a3463c3098656d7ed6fd64..7bb74e6f484a2ab0731f77a121b95d06af1b2c93 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1019,7 +1019,7 @@ repeat:
                                COMMAND_BUF_SIZE - 1 - cbo[i], &rfds, &sz);
                        cbo[i] += sz;
                        sz = cbo[i];
                                COMMAND_BUF_SIZE - 1 - cbo[i], &rfds, &sz);
                        cbo[i] += sz;
                        sz = cbo[i];
-                       cbo[i] = for_each_line(command_buf[i], cbo[i],
+                       cbo[i] = for_each_line(0, command_buf[i], cbo[i],
                                add_output_line, &i);
                        if (sz != cbo[i])
                                wrefresh(bot.win);
                                add_output_line, &i);
                        if (sz != cbo[i])
                                wrefresh(bot.win);