summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-10-27 13:21:52 -0400
committerTingPing <tingping@tingping.se>2013-10-27 13:21:52 -0400
commit30a47cf62e50c79693dfe641977fad9cbe66f86d (patch)
treeefa9e0a7366bc9e7fb33512bd6880fc2fc5e1414 /src
parentaadee8afbad700f67ddd81c1dcbdc014c4341284 (diff)
Fix random_line() cutting off text
fgets() wont include the newline
Diffstat (limited to 'src')
-rw-r--r--src/common/outbound.c1
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);
 }