summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_exe_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/ecore/src/lib/ecore/ecore_exe_win32.c')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_exe_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_exe_win32.c b/legacy/ecore/src/lib/ecore/ecore_exe_win32.c
index 30d7d3c25b..7f4435a80c 100644
--- a/legacy/ecore/src/lib/ecore/ecore_exe_win32.c
+++ b/legacy/ecore/src/lib/ecore/ecore_exe_win32.c
@@ -621,7 +621,7 @@ ecore_exe_hup(Ecore_Exe *exe)
621static int 621static int
622_ecore_exe_win32_pipe_thread_generic_cb(void *data, Ecore_Exe_Flags flags) 622_ecore_exe_win32_pipe_thread_generic_cb(void *data, Ecore_Exe_Flags flags)
623{ 623{
624#define BUFSIZE 2 624#define BUFSIZE 2048
625 char buf[BUFSIZE]; 625 char buf[BUFSIZE];
626 Ecore_Exe *exe; 626 Ecore_Exe *exe;
627 char *current_buf = NULL; 627 char *current_buf = NULL;
@@ -653,7 +653,7 @@ _ecore_exe_win32_pipe_thread_generic_cb(void *data, Ecore_Exe_Flags flags)
653 653
654 while (1) 654 while (1)
655 { 655 {
656 if (!PeekNamedPipe(child_pipe, buf, 1, &size, &current_size, NULL)) 656 if (!PeekNamedPipe(child_pipe, buf, sizeof(buf), &size, &current_size, NULL))
657 continue; 657 continue;
658 if (size == 0) 658 if (size == 0)
659 continue; 659 continue;