diff options
Diffstat (limited to 'lib/libsectok/scio.c')
-rw-r--r-- | lib/libsectok/scio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libsectok/scio.c b/lib/libsectok/scio.c index b9352794752..96104ecd0d3 100644 --- a/lib/libsectok/scio.c +++ b/lib/libsectok/scio.c @@ -1,4 +1,4 @@ -/* $Id: scio.c,v 1.11 2002/01/02 20:18:32 deraadt Exp $ */ +/* $Id: scio.c,v 1.12 2003/04/02 22:57:51 deraadt Exp $ */ /* copyright 1997 @@ -100,9 +100,9 @@ todos_scopen(int ttyn, int flags, int *ep) #endif /* BYTECOUNT */ #ifdef __sun - sprintf(ttyname, ttynametmpl, 'a' + ttyn); + snprintf(ttyname, sizeof ttyname, ttynametmpl, 'a' + ttyn); #else - sprintf(ttyname, ttynametmpl, ttyn); + snprintf(ttyname, sizeof ttyname, ttynametmpl, ttyn); #endif |