From fa3b6b6c9ca3240366e6ec985d339a07681cd9c6 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 14 Jan 2013 17:37:55 +0000 Subject: - Quick and dirty workaround to fix build on GNU/Hurd because of undefined PATH_MAX git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1737 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/m_help.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/m_help.c b/modules/m_help.c index dfc1cfb..c104f0c 100644 --- a/modules/m_help.c +++ b/modules/m_help.c @@ -89,7 +89,7 @@ static void dohelp(struct Client *source_p, const char *hpath, char *topic) { char h_index[] = "index"; - char path[PATH_MAX + 1]; + char path[HYB_PATH_MAX + 1]; struct stat sb; unsigned int i; @@ -106,7 +106,7 @@ dohelp(struct Client *source_p, const char *hpath, char *topic) return; } - if (strlen(hpath) + strlen(topic) + 1 > PATH_MAX) + if (strlen(hpath) + strlen(topic) + 1 > HYB_PATH_MAX) { sendto_one(source_p, form_str(ERR_HELPNOTFOUND), me.name, source_p->name, topic); -- cgit