Description: Removes trailing newlines from standard inputs.
Author: Giorgio Maccari <giorgio.maccari@gmail.com>
Bug-Debian: http://bugs.debian.org/700088
--- boxshade-3.3.1.old/bx_read.c	2013-02-08 15:20:14.000000000 +0100
+++ boxshade-3.3.1/bx_read.c	2013-02-11 10:21:04.575015837 +0100
@@ -4,7 +4,11 @@
 
 char *Gets(char *s, size_t length) {
   fflush(stdout);
-  return fgets(s,length,stdin);
+  fgets(s,length,stdin);
+  char *pos;
+  if ((pos=strchr(s, '\n')) != NULL)
+    *pos = '\0';
+  return s;
 }
 
 /*


