Package: boxshade
Version: 3.3.1-7
Severity: important
Tags: patch

Dear Maintainer,

boxshade seems to have some problem to read the path of files from stdin, in 
particular it mantains the trailing newline character as part of the name, as a 
results the application is unusable.
Please considre the following patch as a possible fix (or workaround) for the 
problem.

-------------------PATCH-------------------------------
--- boxshade-3.3.1.old/bx_read.c    2013-02-08 15:20:14.000000000 +0100
+++ boxshade-3.3.1.new/bx_read.c    2013-02-08 15:10:52.590377053 +0100
@@ -4,7 +4,9 @@

 char *Gets(char *s, size_t length) {
   fflush(stdout);
-  return fgets(s,length,stdin);
+  fgets(s,length,stdin);
+  strtok(s, "\n");
+  return s;
 }

 /*
-----------------------------------------------------

All my best,
Giorgio Maccari.



-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.7.0-6.dmz.1-liquorix-amd64 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages boxshade depends on:
ii  libc6  2.13-38

boxshade recommends no packages.

Versions of packages boxshade suggests:
ii  clustalw             2.1+lgpl-2
pn  seaview              <none>
ii  texlive-latex-extra  2012.20120611-2
pn  xfig                 <none>

-- no debconf information
--- boxshade-3.3.1.old/bx_read.c	2013-02-08 15:20:14.000000000 +0100
+++ boxshade-3.3.1.new/bx_read.c	2013-02-08 15:10:52.590377053 +0100
@@ -4,7 +4,9 @@
 
 char *Gets(char *s, size_t length) {
   fflush(stdout);
-  return fgets(s,length,stdin);
+  fgets(s,length,stdin);
+  strtok(s, "\n");
+  return s;
 }
 
 /*

Reply via email to