Hurd compat fixes. Mostly dealing with absent PATH_MAX

Signed-off-by: Jérémie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Jérémie Koenig 2010-03-26 19:08:53 +01:00 committed by Denys Vlasenko
parent 35fdb1bc9c
commit fbedacfc8c
13 changed files with 85 additions and 61 deletions

View file

@ -203,7 +203,7 @@ void clear_config(void)
*/
void use_config(char *m, int slen)
{
char s[PATH_MAX];
char *s = alloca(slen+1);
char *p;
if (is_defined_config(m, slen))
@ -310,7 +310,7 @@ void parse_dep_file(void *map, size_t len)
char *m = map;
char *end = m + len;
char *p;
char s[PATH_MAX];
char *s = alloca(len);
p = memchr(m, ':', len);
if (!p) {