diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 09:47:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 09:47:21 +0000 |
commit | 0f255ec3ff0a620b4f8064781b438d7cf26407f5 (patch) | |
tree | 1bb9fd29dc494cb1f0a29e53d941403dec213d22 /usr.sbin/grfconfig | |
parent | ef1b3f9682539a42c2f5cd67e47ef048adb5f498 (diff) |
more snprintf
Diffstat (limited to 'usr.sbin/grfconfig')
-rw-r--r-- | usr.sbin/grfconfig/grfconfig.c | 6 |
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"); |