projects
/
NextIRCd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fb7e6a4
)
small fix
author
pk910
<philipp@zoelle1.de>
Tue, 15 Jul 2014 22:20:45 +0000
(
00:20
+0200)
committer
pk910
<philipp@zoelle1.de>
Tue, 15 Jul 2014 22:20:45 +0000
(
00:20
+0200)
src/ircd_client.c
patch
|
blob
|
history
diff --git
a/src/ircd_client.c
b/src/ircd_client.c
index 3ae6e50e0697c9475ef28fbd1659baba67bcfb23..9ef6451131669355d1da8a5eb943fb1df3c19870 100644
(file)
--- a/
src/ircd_client.c
+++ b/
src/ircd_client.c
@@
-38,7
+38,7
@@
static void client_printf(struct Connection *conn, const char *text, ...) {
if (pos < 0 || pos > (CLIENT_MAXLEN - 2)) pos = CLIENT_MAXLEN - 2;
sendBuf[pos] = '\n';
sendBuf[pos+1] = '\0';
if (pos < 0 || pos > (CLIENT_MAXLEN - 2)) pos = CLIENT_MAXLEN - 2;
sendBuf[pos] = '\n';
sendBuf[pos+1] = '\0';
- socket_send(conn, sendBuf, pos);
+ socket_send(conn, sendBuf, pos
+1
);
}
void client_connected(struct Connection *conn) {
}
void client_connected(struct Connection *conn) {