From 84093e9d7407b64673d20b38a02bca432f970ba6 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 15 Dec 1999 09:06:28 +1100 Subject: - Integrated patchs from Juergen Keil - Avoid void* pointer arithmatic - Use LDFLAGS correctly --- atomicio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'atomicio.c') diff --git a/atomicio.c b/atomicio.c index 46ffee35..fcab2ea7 100644 --- a/atomicio.c +++ b/atomicio.c @@ -24,7 +24,7 @@ */ #include "includes.h" -RCSID("$Id: atomicio.c,v 1.7 1999/12/07 06:03:33 damien Exp $"); +RCSID("$Id: atomicio.c,v 1.8 1999/12/14 22:06:28 damien Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -42,7 +42,7 @@ atomicio(f, fd, s, n) int res, pos = 0; while (n > pos) { - res = (f) (fd, s + pos, n - pos); + res = (f) (fd, (char*)s + pos, n - pos); switch (res) { case -1: if (errno == EINTR || errno == EAGAIN) -- cgit v1.2.1