summaryrefslogtreecommitdiff
path: root/modules/m_help.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-01-14 17:37:55 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-01-14 17:37:55 +0000
commitfa3b6b6c9ca3240366e6ec985d339a07681cd9c6 (patch)
tree7c3dfd18b7ec6a2de047d7ac82aef2057bfc3b48 /modules/m_help.c
parent33862809dfc9df2bf039dfbf47f7524c00947b54 (diff)
- 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
Diffstat (limited to 'modules/m_help.c')
-rw-r--r--modules/m_help.c4
1 files changed, 2 insertions, 2 deletions
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);