diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-07-14 02:59:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-07-14 02:59:42 +0000 |
commit | c0f7498575f310c0d1bbc1e1042e7c60c8ddced0 (patch) | |
tree | d558ac13ab46aa7bc11f981b5f08c51ea2c63858 /usr.sbin/config/ukcutil.c | |
parent | 6715eae37fa352fa839662463dd316eae343b4de (diff) |
kill sprintf
Diffstat (limited to 'usr.sbin/config/ukcutil.c')
-rw-r--r-- | usr.sbin/config/ukcutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/ukcutil.c b/usr.sbin/config/ukcutil.c index 97c3bb1f336..f322c0c6501 100644 --- a/usr.sbin/config/ukcutil.c +++ b/usr.sbin/config/ukcutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukcutil.c,v 1.10 2002/05/02 12:59:54 miod Exp $ */ +/* $OpenBSD: ukcutil.c,v 1.11 2002/07/14 02:59:41 deraadt Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -30,7 +30,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.10 2002/05/02 12:59:54 miod Exp $"; +static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.11 2002/07/14 02:59:41 deraadt Exp $"; #endif #include <sys/types.h> @@ -1355,7 +1355,7 @@ again: printf("Invalid command '%s'. Try 'help'.\n", cmd.cmd); continue; } else - strcpy(cmd.cmd, cmd_table[i].cmd); + strlcpy(cmd.cmd, cmd_table[i].cmd, sizeof cmd.cmd); /* Call function */ st = cmd_table[i].fcn(&cmd); |