Codebase list dillo / 47f21d2
Add patch by Pino Toscano <pino@debian.org> to fix FTBFS on Hurd Axel Beckert 11 years ago
3 changed file(s) with 34 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 dillo (3.0.3-2) experimental; urgency=low
1
2 * Add patch by Pino Toscano <pino@debian.org> to fix FTBFS on Hurd.
3
4 -- Axel Beckert <abe@debian.org> Fri, 19 Apr 2013 17:36:01 +0200
5
06 dillo (3.0.3-1) experimental; urgency=low
17
28 * New upstream release
0 Description: Fixes FTBFS on hurd-i386
1 Author: Pino Toscano <pino@debian.org>
2
3 --- a/dw/hyphenator.cc
4 +++ b/dw/hyphenator.cc
5 @@ -49,7 +49,7 @@ Hyphenator::Hyphenator (const char *patF
6 {
7 trie = NULL; // As long we are not sure whether a pattern file can be read.
8
9 - char buf[PATH_MAX + 1];
10 + char buf[strlen (patFile) + 5 + 1];
11 snprintf(buf, sizeof (buf), "%s.trie", patFile);
12 FILE *trieF = fopen (buf, "r");
13
14 @@ -118,10 +118,10 @@ Hyphenator *Hyphenator::getHyphenator (c
15 if (hyphenator)
16 delete langString;
17 else {
18 - char patFile [PATH_MAX];
19 + char patFile [strlen (DILLO_LIBDIR) + 13 + strlen (lang) + 4 + 1];
20 snprintf (patFile, sizeof (patFile), "%s/hyphenation/%s.pat",
21 DILLO_LIBDIR, lang);
22 - char excFile [PATH_MAX];
23 + char excFile [strlen (DILLO_LIBDIR) + 13 + strlen (lang) + 4 + 1];
24 snprintf (excFile, sizeof(excFile), "%s/hyphenation/%s.exc",
25 DILLO_LIBDIR, lang);
26
0 FTBFS-on-hurd.patch