summaryrefslogtreecommitdiffstats
path: root/mbbsd/name.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/name.c')
-rw-r--r--mbbsd/name.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c
index 59c9c471..d170eebd 100644
--- a/mbbsd/name.c
+++ b/mbbsd/name.c
@@ -301,10 +301,10 @@ void
ToggleNameList(int *reciper, const char *listfile, const char *msg)
{
FILE *fp;
- char genbuf[200];
+ char genbuf[STRLEN];
if ((fp = fopen(listfile, "r"))) {
- while (fgets(genbuf, STRLEN, fp)) {
+ while (fgets(genbuf, sizeof(genbuf), fp)) {
char *space = strpbrk(genbuf, str_space);
if (space) *space = '\0';
if (!genbuf[0])