=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/dc/inout.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/usr.bin/dc/inout.c 2003/11/14 20:18:47 1.8 +++ src/usr.bin/dc/inout.c 2005/03/15 10:28:38 1.9 @@ -1,4 +1,4 @@ -/* $OpenBSD: inout.c,v 1.8 2003/11/14 20:18:47 otto Exp $ */ +/* $OpenBSD: inout.c,v 1.9 2005/03/15 10:28:38 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek @@ -17,7 +17,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: inout.c,v 1.8 2003/11/14 20:18:47 otto Exp $"; +static const char rcsid[] = "$OpenBSD: inout.c,v 1.9 2005/03/15 10:28:38 otto Exp $"; #endif /* not lint */ #include @@ -167,7 +167,7 @@ char buf[12]; char *q = buf; - snprintf(buf, sizeof(buf), "%s", p); + strlcpy(buf, p, sizeof(buf)); while (*q) putcharwrap(f, *q++); }