1 diff -u -r ../hunspell-1.3.3/src/tools/hunspell.cxx ./src/tools/hunspell.cxx
2 --- ../hunspell-1.3.3/src/tools/hunspell.cxx 2014-06-02 07:35:50.000000000 -0400
3 +++ ./src/tools/hunspell.cxx 2016-03-06 02:28:02.031833160 -0500
5 #include "odfparser.hxx"
8 - "/usr/share/hunspell:" \
9 + "@TERMUX_PREFIX@/share/hunspell:" \
10 "/usr/share/myspell:" \
11 "/usr/share/myspell/dicts:" \
14 "/usr/lib/openoffice.org2.0/share/dict/ooo"
15 #define HOME getenv("HOME")
16 #define DICBASENAME ".hunspell_"
17 -#define LOGFILE "/tmp/hunspell.log"
18 +#define LOGFILE "@TERMUX_PREFIX@/tmp/hunspell.log"
22 @@ -1423,7 +1423,13 @@
27 + char tmpfile_template[] = "@TERMUX_PREFIX@/tmp/hunspell.XXXXXX";
28 + int tmpfile_fd = mkstemp(tmpfile_template);
29 + FILE *tempfile = fdopen(tmpfile_fd, "w+");
31 FILE *tempfile = tmpfile();
39 fclose(tempfile); //automatically deleted when closed
41 + unlink(tmpfile_template);
43 if (is_zipped_odf(parser, extension)) {
44 sprintf(buf, "rm %s; rmdir %s", filename, odftempdir);
49 fclose(tempfile); //automatically deleted when closed
51 + unlink(tmpfile_template);