change the size of the buffer

SVN revision: 55519
This commit is contained in:
Vincent Torri 2010-12-12 18:09:35 +00:00
parent dd8fe515a3
commit b467360e80
1 changed files with 2 additions and 2 deletions

View File

@ -621,7 +621,7 @@ ecore_exe_hup(Ecore_Exe *exe)
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 @@ _ecore_exe_win32_pipe_thread_generic_cb(void *data, Ecore_Exe_Flags flags)
while (1)
{
if (!PeekNamedPipe(child_pipe, buf, 1, &size, &current_size, NULL))
if (!PeekNamedPipe(child_pipe, buf, sizeof(buf), &size, &current_size, NULL))
continue;
if (size == 0)
continue;