[Debian-med-packaging] Bug#700088: boxshade: fails finding the alignment file
Giorgio Maccari
giorgio.maccari at gmail.com
Fri Feb 8 14:59:54 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stdin_read.patch
Type: text/x-diff
Size: 314 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20130208/521cc642/attachment.patch>
More information about the Debian-med-packaging
mailing list