projects
/
ircu2.10.12-pk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
520bced
)
fixed crash in ext_amsg_block (some systems cut off the \n at the end of the line)
author
pk910
<philipp@zoelle1.de>
Mon, 30 Jan 2012 19:41:07 +0000
(20:41 +0100)
committer
pk910
<philipp@zoelle1.de>
Mon, 30 Jan 2012 19:41:07 +0000
(20:41 +0100)
ircd/channel.c
patch
|
blob
|
history
diff --git
a/ircd/channel.c
b/ircd/channel.c
index 5a17a6bf21df3d859703b819c3138ecb01c0f797..dc8783ce5994f86570abc5885dcfbac86c2271b3 100644
(file)
--- a/
ircd/channel.c
+++ b/
ircd/channel.c
@@
-4346,7
+4346,7
@@
int ext_amsg_block(struct Client *cptr, struct Channel *chptr, const char *msg)
int p_pos = 0;
int is_visible = 1, is_ccode = 0, i = 0, j = 0;
char codes[5];
- for(i = 0; p != '\n'; p = stripped_message[++i]) {
+ for(i = 0; p != '\n'
&& p != 0
; p = stripped_message[++i]) {
if(p == 3) {
j = 0;
is_ccode = 1;