mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-22 00:46:09 +01:00
Fixed several warnings and a little cleanup.
This commit is contained in:
parent
5986794156
commit
55253bdf61
6 changed files with 17 additions and 31 deletions
5
src/db.c
5
src/db.c
|
|
@ -172,8 +172,9 @@ char *fread_action(FILE *fl, int nr)
|
|||
|
||||
parse_at(buf);
|
||||
|
||||
/* Some clients interpret '\r' the same as { '\r' '\n' }, so the original way of just
|
||||
replacing '\n' with '\0' would appear as 2 new lines following the action */
|
||||
/* Some clients interpret '\r' the same as { '\r' '\n' }, so the original way
|
||||
* of just replacing '\n' with '\0' would appear as 2 new lines following the
|
||||
* action */
|
||||
for (i = 0; buf[i] != '\0'; i++)
|
||||
if (buf[i] == '\r' || buf[i] == '\n') {
|
||||
buf[i] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue