diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-16 18:49:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-16 18:49:09 +0000 |
commit | 02748c634c0f2a48d333e7a2d406e5c71f0d99d5 (patch) | |
tree | 9e39387bdac863b493ec3e1814653b685941d9d9 /kerberosIV/ksrvutil/ksrvutil.c | |
parent | 0eeac555bd0aef9e6d8326dd8e1ae341f7239a98 (diff) |
sprintf -> snprintf paranoia
Diffstat (limited to 'kerberosIV/ksrvutil/ksrvutil.c')
-rw-r--r-- | kerberosIV/ksrvutil/ksrvutil.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kerberosIV/ksrvutil/ksrvutil.c b/kerberosIV/ksrvutil/ksrvutil.c index 32486110522..cf03e2ccfd1 100644 --- a/kerberosIV/ksrvutil/ksrvutil.c +++ b/kerberosIV/ksrvutil/ksrvutil.c @@ -1,4 +1,4 @@ -/* $Id: ksrvutil.c,v 1.2 1995/12/14 08:43:56 tholo Exp $ */ +/* $Id: ksrvutil.c,v 1.3 1996/09/16 18:49:03 millert Exp $ */ /*- * Copyright (C) 1989 by the Massachusetts Institute of Technology @@ -325,7 +325,8 @@ main(int argc, char **argv) (void) bzero((char *)backup_keyfile, sizeof(backup_keyfile)); (void) bzero((char *)local_realm, sizeof(local_realm)); - (void) sprintf(change_tkt, "/tmp/tkt_ksrvutil.%d", (int)getpid()); + (void) snprintf(change_tkt, sizeof(change_tkt), "/tmp/tkt_ksrvutil.%d", + (int)getpid()); krb_set_tkt_string(change_tkt); /* This is used only as a default for adding keys */ |