projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9502757
)
fixed off by offset error
author
Christian Pointner
<equinox@realraum.at>
Sun, 1 Nov 2009 19:16:29 +0000
(19:16 +0000)
committer
Christian Pointner
<equinox@realraum.at>
Sun, 1 Nov 2009 19:16:29 +0000
(19:16 +0000)
door_daemon/door_daemon.c
patch
|
blob
|
history
diff --git
a/door_daemon/door_daemon.c
b/door_daemon/door_daemon.c
index
e9bd2db
..
556f232
100644
(file)
--- 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;