From: Enlightenment S. <no-...@en...> - 2010-12-12 18:09:42
|
Log: change the size of the buffer Author: caro Date: 2010-12-12 10:09:35 -0800 (Sun, 12 Dec 2010) New Revision: 55519 Trac: http://trac.enlightenment.org/e/changeset/55519 Modified: trunk/ecore/src/lib/ecore/ecore_exe_win32.c Modified: trunk/ecore/src/lib/ecore/ecore_exe_win32.c =================================================================== --- trunk/ecore/src/lib/ecore/ecore_exe_win32.c 2010-12-12 17:11:57 UTC (rev 55518) +++ trunk/ecore/src/lib/ecore/ecore_exe_win32.c 2010-12-12 18:09:35 UTC (rev 55519) @@ -621,7 +621,7 @@ static int _ecore_exe_win32_pipe_thread_generic_cb(void *data, Ecore_Exe_Flags flags) { -#define BUFSIZE 2 +#define BUFSIZE 2048 char buf[BUFSIZE]; Ecore_Exe *exe; char *current_buf = NULL; @@ -653,7 +653,7 @@ while (1) { - if (!PeekNamedPipe(child_pipe, buf, 1, &size, ¤t_size, NULL)) + if (!PeekNamedPipe(child_pipe, buf, sizeof(buf), &size, ¤t_size, NULL)) continue; if (size == 0) continue; |