summaryrefslogtreecommitdiffstats
path: root/academic/primer3/gcc-7.patch
diff options
context:
space:
mode:
author Petar Petrov <slackalaxy@gmail.com>2018-07-08 19:42:08 +0100
committer David Spencer <idlemoor@slackbuilds.org>2018-07-08 19:42:08 +0100
commit4ce886af277886c629ab55efeb23b07874369c00 (patch)
treea85f77e8f01018ab9be721d1348b073ace28eba1 /academic/primer3/gcc-7.patch
parent5c821121ece759ad907abbdf81c640c805eb197d (diff)
downloadslackbuilds-4ce886af2.tar.gz
slackbuilds-4ce886af2.tar.xz
academic/primer3: Updated for version 2.4.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/primer3/gcc-7.patch')
-rw-r--r--academic/primer3/gcc-7.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/academic/primer3/gcc-7.patch b/academic/primer3/gcc-7.patch
new file mode 100644
index 0000000000..a92d0e77b7
--- /dev/null
+++ b/academic/primer3/gcc-7.patch
@@ -0,0 +1,22 @@
+Author: Andreas Tille <tille@debian.org>
+Last-Update: Sat, 26 Aug 2017 00:32:40 +0200
+Bug-Debian: https://bugs.debian.org/853621
+Description: Fix build with gcc-7
+
+--- a/src/thal.c
++++ b/src/thal.c
+@@ -426,12 +426,12 @@ thal(const unsigned char *oligo_f,
+ "Illegal type");
+ o->align_end_1 = -1;
+ o->align_end_2 = -1;
+- if ('\0' == oligo_f) {
++ if ('\0' == oligo_f[0]) {
+ strcpy(o->msg, "Empty first sequence");
+ o->temp = 0.0;
+ return;
+ }
+- if ('\0' == oligo_r) {
++ if ('\0' == oligo_r[0]) {
+ strcpy(o->msg, "Empty second sequence");
+ o->temp = 0.0;
+ return;