From fdbf905e071e97b4079ff0a0ba7029135b234219 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 1 Nov 2009 19:16:29 +0000 Subject: [PATCH] fixed off by offset error --- door_daemon/door_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/door_daemon/door_daemon.c b/door_daemon/door_daemon.c index e9bd2db..556f232 100644 --- a/door_daemon/door_daemon.c +++ b/door_daemon/door_daemon.c @@ -111,7 +111,7 @@ int send_response(int fd, const char* response) int offset = 0; int ret; for(;;) { - ret = write(fd, &response[offset], strlen(response)); + ret = write(fd, &response[offset], strlen(response) - offset); if(ret < 0) { if(errno != EINTR) return ret; -- 1.7.10.4