*: hopefully all setup_common_bufsiz() are in place
[oweals/busybox.git] / miscutils / chat.c
index 25850dd20dcf6b752f641f8f54993cb8b224b836..6b429f2a648f00b5ccd4b5fbb2a95d311782b571 100644 (file)
@@ -286,9 +286,10 @@ int chat_main(int argc UNUSED_PARAM, char **argv)
                            && poll(&pfd, 1, timeout) > 0
                            && (pfd.revents & POLLIN)
                        ) {
-#define buf bb_common_bufsiz1
                                llist_t *l;
                                ssize_t delta;
+#define buf bb_common_bufsiz1
+                               setup_common_bufsiz();
 
                                // read next char from device
                                if (safe_read(STDIN_FILENO, buf+buf_len, 1) > 0) {