summaryrefslogtreecommitdiff
path: root/lib/libc/gen/auth_subr.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-11-22 19:47:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-11-22 19:47:04 +0000
commit3457ded4a8e2b53923da2f8d4665b1db6cb1fa01 (patch)
tree620ba239d6d21468e3c12c0a34cff497758e509b /lib/libc/gen/auth_subr.c
parent3fde5b50007bf5cf789fef9747542b243b5c98b6 (diff)
more snprintf; ok millert
Diffstat (limited to 'lib/libc/gen/auth_subr.c')
-rw-r--r--lib/libc/gen/auth_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/auth_subr.c b/lib/libc/gen/auth_subr.c
index 1da9ebb4149..73a080a960f 100644
--- a/lib/libc/gen/auth_subr.c
+++ b/lib/libc/gen/auth_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_subr.c,v 1.19 2002/10/30 14:54:34 drahn Exp $ */
+/* $OpenBSD: auth_subr.c,v 1.20 2002/11/22 19:47:03 deraadt Exp $ */
/*-
* Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc.
@@ -504,7 +504,7 @@ auth_setoption(auth_session_t *as, char *n, char *v)
opt->opt = (char *)(opt + 1);
- sprintf(opt->opt, "%s=%s", n, v);
+ snprintf(opt->opt, i, "%s=%s", n, v);
opt->next = as->optlist;
as->optlist = opt;
return(0);