ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_help.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_help.c (file contents):
Revision 6350 by michael, Tue Aug 11 17:53:44 2015 UTC vs.
Revision 6995 by michael, Thu Dec 31 14:47:04 2015 UTC

# Line 78 | Line 78 | static void
78   do_help(struct Client *source_p, char *topic)
79   {
80    char h_index[] = "index";
81  char path[HYB_PATH_MAX + 1];
81    struct stat sb;
82  
83    if (EmptyString(topic))
# Line 93 | Line 92 | do_help(struct Client *source_p, char *t
92      return;
93    }
94  
95 <  if (strlen(HPATH) + strlen(topic) + 1 > HYB_PATH_MAX)
97 <  {
98 <    sendto_one_numeric(source_p, &me, ERR_HELPNOTFOUND, topic);
99 <    return;
100 <  }
101 <
95 >  char path[sizeof(HPATH) + strlen(topic) + 1];
96    snprintf(path, sizeof(path), "%s/%s", HPATH, topic);
97  
98    if (stat(path, &sb) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)