Fixed several warnings and a little cleanup.

This commit is contained in:
Rumble 2013-10-20 19:01:57 -05:00
parent 5986794156
commit 55253bdf61
6 changed files with 17 additions and 31 deletions

View file

@ -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';