cleanup
authorChristian Pointner <equinox@realraum.at>
Sun, 1 Nov 2009 19:19:00 +0000 (19:19 +0000)
committerChristian Pointner <equinox@realraum.at>
Sun, 1 Nov 2009 19:19:00 +0000 (19:19 +0000)
door_daemon/door_daemon.c

index 556f232..b7f7197 100644 (file)
@@ -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) - offset);
+    ret = write(fd, &response[offset], len - offset);
     if(ret < 0) {
       if(errno != EINTR)
         return ret;