aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-12-06 21:07:27 +0000
committerWayne Davison <wayned@samba.org>2003-12-06 21:07:27 +0000
commit58cadc8608fbb2cbc7b74578cd92de4337a4b887 (patch)
tree2a6d671629752eb4f319556b8d8438d535b8cd44 /io.c
parentb11b50bcd026a0a052bdfab7b96c97045b658d86 (diff)
downloadandroid_external_rsync-58cadc8608fbb2cbc7b74578cd92de4337a4b887.tar.gz
android_external_rsync-58cadc8608fbb2cbc7b74578cd92de4337a4b887.tar.bz2
android_external_rsync-58cadc8608fbb2cbc7b74578cd92de4337a4b887.zip
Merged in the security fixes from 2.5.7.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 36d5f1b2..9fc37152 100644
--- a/io.c
+++ b/io.c
@@ -688,7 +688,7 @@ void io_start_buffering(int fd)
{
if (io_buffer) return;
multiplex_out_fd = fd;
- io_buffer = (char *)malloc(IO_BUFFER_SIZE);
+ io_buffer = new_array(char, IO_BUFFER_SIZE);
if (!io_buffer) out_of_memory("writefd");
io_buffer_count = 0;
}