summaryrefslogtreecommitdiff
path: root/usr.sbin/grfconfig
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:47:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:47:21 +0000
commit0f255ec3ff0a620b4f8064781b438d7cf26407f5 (patch)
tree1bb9fd29dc494cb1f0a29e53d941403dec213d22 /usr.sbin/grfconfig
parentef1b3f9682539a42c2f5cd67e47ef048adb5f498 (diff)
more snprintf
Diffstat (limited to 'usr.sbin/grfconfig')
-rw-r--r--usr.sbin/grfconfig/grfconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/grfconfig/grfconfig.c b/usr.sbin/grfconfig/grfconfig.c
index 479c950a3fa..ee73abeb365 100644
--- a/usr.sbin/grfconfig/grfconfig.c
+++ b/usr.sbin/grfconfig/grfconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grfconfig.c,v 1.5 2002/02/16 21:28:02 millert Exp $ */
+/* $OpenBSD: grfconfig.c,v 1.6 2002/05/29 09:47:20 deraadt Exp $ */
/* $NetBSD: grfconfig.c,v 1.6 1997/07/29 23:41:12 veego Exp $ */
/*-
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
#ifndef lint
-static char rcsid[] = "$OpenBSD: grfconfig.c,v 1.5 2002/02/16 21:28:02 millert Exp $";
+static char rcsid[] = "$OpenBSD: grfconfig.c,v 1.6 2002/05/29 09:47:20 deraadt Exp $";
#endif /* not lint */
#include <sys/file.h>
@@ -149,7 +149,7 @@ main(ac, av)
continue;
*++p = '\0';
- sprintf(obuf, "%s", buf);
+ snprintf(obuf, sizeof obuf, "%s", buf);
lineno = lineno + 1;
for (i = 0, *cps = strtok(buf, " \b\t\r\n");