Fix for last commit
This commit is contained in:
parent
973d4e63f4
commit
6bb2df7abd
@ -821,8 +821,8 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
|
|||||||
while (strchr("ABCDEFGHIGJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", body[z]) == NULL)
|
while (strchr("ABCDEFGHIGJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", body[z]) == NULL)
|
||||||
z++;
|
z++;
|
||||||
if (body[z] == 'm' || body[z] == 'C') {
|
if (body[z] == 'm' || body[z] == 'C') {
|
||||||
strncpy(buffer, &body[ansi], ansi - z);
|
strncpy(buffer, &body[ansi], z - ansi);
|
||||||
buffer[ansi-z] = '\0';
|
buffer[z - ansi] = '\0';
|
||||||
s_putstring(socket, buffer);
|
s_putstring(socket, buffer);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user