From 30a47cf62e50c79693dfe641977fad9cbe66f86d Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 27 Oct 2013 13:21:52 -0400 Subject: Fix random_line() cutting off text fgets() wont include the newline --- src/common/outbound.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/common') 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); } -- cgit 1.4.1