# | 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) |
– | Removed lines |
+ | Added lines |
< | Changed lines (old) |
> | Changed lines (new) |