Drop FTBFS-on-hurd.patch. Applied upstream
Axel Beckert
9 years ago
|
0 |
dillo (3.0.4~rc1-1) UNRELEASED; urgency=low
|
|
1 |
|
|
2 |
* New upstream release candidate
|
|
3 |
+ Drop FTBFS-on-hurd.patch. Applied upstream.
|
|
4 |
|
|
5 |
-- Axel Beckert <abe@debian.org> Sat, 05 Apr 2014 20:01:25 +0200
|
|
6 |
|
0 | 7 |
dillo (3.0.3-6) unstable; urgency=low
|
1 | 8 |
|
2 | 9 |
* Apply wrap-and-sort
|
debian/patches/FTBFS-on-hurd.patch
less
more
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 | |
|