meritous (1.2+dfsg-1) enter_on_help.patch

Summary

 src/help.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

--- a/src/help.c	2008-02-11 20:19:39.000000000 -0600
+++ b/src/help.c	2008-02-11 20:21:44.000000000 -0600
@@ -60,7 +60,8 @@
 	fp = fopen("/usr/share/games/meritous/d/helpfile.txt", "r");
 	while (!feof(fp)) {
 		fgets(linebuf, 79, fp);
-		if (linebuf[strlen(linebuf)-1] == '\n')
+		while (linebuf[strlen(linebuf)-1] == '\n' ||
+		       linebuf[strlen(linebuf)-1] == '\r')
 			linebuf[strlen(linebuf)-1] = 0;
 			
 		if (linebuf[0] == '\'') {