diff options
Diffstat (limited to 'kerberosV')
-rw-r--r-- | kerberosV/src/kuser/klist.c | 12 |
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); |