--- IO-AIO/AIO.xs 2006/11/26 18:28:37 1.94 +++ IO-AIO/AIO.xs 2006/12/23 04:49:37 1.96 @@ -779,8 +779,8 @@ if (!res_queue.size) { /* read any signals sent by the worker threads */ - char buf [32]; - while (read (respipe [0], buf, 32) == 32) + char buf [4]; + while (read (respipe [0], buf, 4) == 4) ; } } @@ -1448,7 +1448,7 @@ else { /* read: grow scalar as necessary */ - svptr = SvGROW (data, length + dataoffset); + svptr = SvGROW (data, length + dataoffset + 1); } if (length < 0)