summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index d6d8c8ea..cbbfea1b 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.42 2002/07/21 09:26:02 in2 Exp $ */
+/* $Id: board.c,v 1.43 2002/07/22 19:02:00 in2 Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -328,8 +328,9 @@ have_author(char *brdname)
{
char dirname[100];
- sprintf(dirname, "¥¿¦b·j´M§@ªÌ%s ¬ÝªO:%s.....",
- currauthor, brdname);
+ snprintf(dirname, sizeof(dirname),
+ "¥¿¦b·j´M§@ªÌ%s ¬ÝªO:%s.....",
+ currauthor, brdname);
move(b_lines, 0);
clrtoeol();
outs(dirname);