Blame SOURCES/aspell-0.60.6.1-gcc7-fixes.patch

ade8bb
commit 8089fa02122fed0a6394eba14bbedcb1d18e2384
ade8bb
Author: Kevin Atkinson <kevina@gnu.org>
ade8bb
Date:   Thu Dec 29 00:50:31 2016 -0500
ade8bb
ade8bb
    Compile Fixes for GCC 7.
ade8bb
    
ade8bb
    Closes #519.
ade8bb
ade8bb
diff --git a/modules/filter/tex.cpp b/modules/filter/tex.cpp
ade8bb
index a979539..19ab63c 100644
ade8bb
--- a/modules/filter/tex.cpp
ade8bb
+++ b/modules/filter/tex.cpp
ade8bb
@@ -174,7 +174,7 @@ namespace {
ade8bb
 
ade8bb
     if (c == '{') {
ade8bb
 
ade8bb
-      if (top.in_what == Parm || top.in_what == Opt || top.do_check == '\0')
ade8bb
+      if (top.in_what == Parm || top.in_what == Opt || *top.do_check == '\0')
ade8bb
 	push_command(Parm);
ade8bb
 
ade8bb
       top.in_what = Parm;
ade8bb
diff --git a/prog/check_funs.cpp b/prog/check_funs.cpp
ade8bb
index db54f3d..89ee09d 100644
ade8bb
--- a/prog/check_funs.cpp
ade8bb
+++ b/prog/check_funs.cpp
ade8bb
@@ -647,7 +647,7 @@ static void print_truncate(FILE * out, const char * word, int width) {
ade8bb
     }
ade8bb
   }
ade8bb
   if (i == width-1) {
ade8bb
-    if (word == '\0')
ade8bb
+    if (*word == '\0')
ade8bb
       put(out,' ');
ade8bb
     else if (word[len] == '\0')
ade8bb
       put(out, word, len);