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/make_keypair/make_keypair.c | |
parent | 0eeac555bd0aef9e6d8326dd8e1ae341f7239a98 (diff) |
sprintf -> snprintf paranoia
Diffstat (limited to 'kerberosIV/make_keypair/make_keypair.c')
-rw-r--r-- | kerberosIV/make_keypair/make_keypair.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kerberosIV/make_keypair/make_keypair.c b/kerberosIV/make_keypair/make_keypair.c index b25f1545f43..2b669504535 100644 --- a/kerberosIV/make_keypair/make_keypair.c +++ b/kerberosIV/make_keypair/make_keypair.c @@ -1,4 +1,4 @@ -/* $Id: make_keypair.c,v 1.2 1995/12/29 09:49:55 tholo Exp $ */ +/* $Id: make_keypair.c,v 1.3 1996/09/16 18:49:04 millert Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -109,8 +109,7 @@ make_key(addr) char namebuf[255]; int fd; - (void)sprintf(namebuf, "%s", - inet_ntoa(addr)); + (void)snprintf(namebuf, sizeof(namebuf), "%s", inet_ntoa(addr)); fd = open(namebuf, O_WRONLY|O_CREAT, 0600); if (fd < 0) { perror("open"); |