Dear Maintainer,

The patch that I have submitted on Friday seems to works well just as a
temporary fix to bug 700088 but, as Charles Plessy said, there are still
problems concerning the selection of the default options. Also this is due
to the Gets function declared in bx_read.c. Please consider the new version
of the patch that you will found attached to this mail, as a fix for both
bug 700088 and for the selection of default options.

All my best,
Giorgio Maccari.

####################PATCH#########################
Description: Removes trailing newlines from standard inputs.
Author: Giorgio Maccari <giorgio.macc...@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;
 }

 /*
####################################################

Attachment: remove-newlines.patch
Description: Binary data

Reply via email to