1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 12:42:16 -05:00

Fix random_line() cutting off text

fgets() wont include the newline
This commit is contained in:
TingPing 2013-10-27 13:21:52 -04:00
parent aadee8afba
commit 30a47cf62e

View File

@ -114,7 +114,6 @@ random_line (char *file_name)
}
while (lines > ran);
fclose (fh);
buf[strlen (buf) - 1] = 0; /* remove the trailing '\n' */
return strdup (buf);
}