# | Line 75 | Line 75 | sendhelpfile(struct Client *source_p, co | |
---|---|---|
75 | static void | |
76 | dohelp(struct Client *source_p, char *topic) | |
77 | { | |
78 | + | char *p = topic; |
79 | char h_index[] = "index"; | |
80 | char path[HYB_PATH_MAX + 1]; | |
81 | struct stat sb; | |
81 | – | unsigned int i; |
82 | ||
83 | if (EmptyString(topic)) | |
84 | topic = h_index; | |
85 | else | |
86 | < | for (i = 0; topic[i] != '\0'; ++i) |
87 | < | topic[i] = ToLower(topic[i]); |
86 | > | for (; *p; ++p) |
87 | > | *p = ToLower(*p); |
88 | ||
89 | if (strpbrk(topic, "/\\")) | |
90 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines (old) |
> | Changed lines (new) |