diff options
author | TingPing <tingping@tingping.se> | 2013-10-27 13:21:52 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-10-27 13:21:52 -0400 |
commit | 30a47cf62e50c79693dfe641977fad9cbe66f86d (patch) | |
tree | efa9e0a7366bc9e7fb33512bd6880fc2fc5e1414 /src | |
parent | aadee8afbad700f67ddd81c1dcbdc014c4341284 (diff) |
Fix random_line() cutting off text
fgets() wont include the newline
Diffstat (limited to 'src')
-rw-r--r-- | src/common/outbound.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c index 0b37caf5..8e412186 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -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); } |