summaryrefslogtreecommitdiff
path: root/kerberosV
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-12-05 10:29:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-12-05 10:29:38 +0000
commit592ccfbb1349a4113f6270cb5bbce4875280075b (patch)
tree7646365e1744ad3c1e8e0a5a49de208dd726d24f /kerberosV
parentb1c1ce66ea84d986a2c36b0022fba9c13e766ccd (diff)
use strlcpy instead
Diffstat (limited to 'kerberosV')
-rw-r--r--kerberosV/src/kuser/klist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/kerberosV/src/kuser/klist.c b/kerberosV/src/kuser/klist.c
index f64d0cff47e..d36af4d3563 100644
--- a/kerberosV/src/kuser/klist.c
+++ b/kerberosV/src/kuser/klist.c
@@ -34,13 +34,13 @@
#include "kuser_locl.h"
#include "rtbl.h"
-RCSID("$KTH: klist.c,v 1.62 2001/01/25 12:37:01 assar Exp $");
+RCSID("$KTH: klist.c,v 1.64 2001/05/11 19:55:13 assar Exp $");
static char*
printable_time(time_t t)
{
static char s[128];
- strcpy(s, ctime(&t)+ 4);
+ strlcpy(s, ctime(&t)+ 4, sizeof s);
s[15] = 0;
return s;
}
@@ -49,7 +49,7 @@ static char*
printable_time_long(time_t t)
{
static char s[128];
- strcpy(s, ctime(&t)+ 4);
+ strlcpy(s, ctime(&t)+ 4, sizeof s);
s[20] = 0;
return s;
}
@@ -275,8 +275,8 @@ print_tickets (krb5_context context,
}
while (krb5_cc_next_cred (context,
ccache,
- &creds,
- &cursor) == 0) {
+ &cursor,
+ &creds) == 0) {
if(do_verbose){
print_cred_verbose(context, &creds);
}else{
@@ -629,7 +629,7 @@ main (int argc, char **argv)
int optind = 0;
int exit_status = 0;
- set_progname (argv[0]);
+ setprogname (argv[0]);
if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optind))
usage(1);