Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pkt-line: teach packet_read_line to chomp newlines
[gitweb.git]
/
daemon.c
diff --git
a/daemon.c
b/daemon.c
index 4602b46a5c39e1d501143ab4e95b55aff5c8f23b..4f5cd615589901c94c1439c9bff3e870d3d4af32 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-612,7
+612,7
@@
static int execute(void)
loginfo("Connection from %s:%s", addr, port);
alarm(init_timeout ? init_timeout : timeout);
- pktlen = packet_read
_line(0, line, sizeof(line)
);
+ pktlen = packet_read
(0, line, sizeof(line), 0
);
alarm(0);
len = strlen(line);