summaryrefslogtreecommitdiffstats
path: root/mbbsd/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/term.c')
-rw-r--r--mbbsd/term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/term.c b/mbbsd/term.c
index ced6b1c4..9694add2 100644
--- a/mbbsd/term.c
+++ b/mbbsd/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.5 2002/07/21 09:26:02 in2 Exp $ */
+/* $Id: term.c,v 1.6 2002/07/22 19:02:00 in2 Exp $ */
#include "bbs.h"
int tgetent(const char *bp, char *name);
@@ -91,7 +91,7 @@ do_move(int destcol, int destline)
{
char buf[16], *p;
- sprintf(buf, "\33[%d;%dH", destline + 1, destcol + 1);
+ snprintf(buf, sizeof(buf), "\33[%d;%dH", destline + 1, destcol + 1);
for (p = buf; *p; p++)
ochar(*p);
}
@@ -115,7 +115,7 @@ change_scroll_range(int top, int bottom)
{
char buf[16], *p;
- sprintf(buf, "\33[%d;%dr", top + 1, bottom + 1);
+ snprintf(buf, sizeof(buf), "\33[%d;%dr", top + 1, bottom + 1);
for (p = buf; *p; p++)
ochar(*p);
}