--- libaitcli/src/aitcli.c 2013/11/20 16:18:34 1.9.2.2 +++ libaitcli/src/aitcli.c 2013/11/20 16:38:14 1.10.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.c,v 1.9.2.2 2013/11/20 16:18:34 misho Exp $ +* $Id: aitcli.c,v 1.10.2.1 2013/11/20 16:38:14 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1281,7 +1281,8 @@ cliReadLine(linebuffer_t * __restrict cli_buffer, int if (!cli_buffer) { cli_SetErr(EINVAL, "Invalid input parameters ..."); return NULL; - } + } else if (timeout > 0) + timeout *= 1000; /* convert from sec to ms */ memset(&fds, 0, sizeof fds); fds.fd = cli_buffer->line_in;