diff --git a/srcpkgs/aspell/patches/fix-char_ptr_comparisons.patch b/srcpkgs/aspell/patches/fix-char_ptr_comparisons.patch new file mode 100644 index 00000000000..a91ce683964 --- /dev/null +++ b/srcpkgs/aspell/patches/fix-char_ptr_comparisons.patch @@ -0,0 +1,25 @@ +Fix comparisons of const char* agains '\0' where obviously +the first character of the array was meant to be checked. + +--- prog/check_funs.cpp 2011-07-04 11:17:27.000000000 +0200 ++++ prog/check_funs.cpp 2017-07-23 17:37:57.880903979 +0200 +@@ -647,7 +647,7 @@ + } + } + if (i == width-1) { +- if (word == '\0') ++ if (*word == '\0') + put(out,' '); + else if (word[len] == '\0') + put(out, word, len); +--- modules/filter/tex.cpp 2011-07-02 23:09:09.000000000 +0200 ++++ modules/filter/tex.cpp 2017-07-23 17:40:05.089075293 +0200 +@@ -174,7 +174,7 @@ + + if (c == '{') { + +- if (top.in_what == Parm || top.in_what == Opt || top.do_check == '\0') ++ if (top.in_what == Parm || top.in_what == Opt || *top.do_check == '\0') + push_command(Parm); + + top.in_what = Parm; diff --git a/srcpkgs/aspell/template b/srcpkgs/aspell/template index 29cdf662e1f..e6855fcb89e 100644 --- a/srcpkgs/aspell/template +++ b/srcpkgs/aspell/template @@ -1,7 +1,7 @@ # Template file for 'aspell' pkgname=aspell version=0.60.6.1 -revision=9 +revision=10 build_style=gnu-configure configure_args="--enable-compile-in-filters" hostmakedepends="automake libtool gettext-devel perl"