diff options
Diffstat (limited to 'mbbsd/name.c')
-rw-r--r-- | mbbsd/name.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c index 4457abae..c136e9a0 100644 --- a/mbbsd/name.c +++ b/mbbsd/name.c @@ -298,7 +298,10 @@ ToggleNameList(int *reciper, const char *listfile, const char *msg) if ((fp = fopen(listfile, "r"))) { while (fgets(genbuf, STRLEN, fp)) { - strtok(genbuf, str_space); + char *space = strpbrk(genbuf, str_space); + if (space) *space = '\0'; + if (!genbuf[0]) + continue; if (!InNameList(genbuf)) { AddNameList(genbuf); (*reciper)++; |