diff options
| author | Warner Losh <imp@FreeBSD.org> | 1997-12-24 18:56:03 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1997-12-24 18:56:03 +0000 |
| commit | 9bc34f7ce14c4401e6ee449f9eeb2c9222fbe756 (patch) | |
| tree | 387678feec78fd449ac77e874c0ce12402366d81 /libexec/bootpd/getether.c | |
| parent | b44e4b7a2b2e4abdebb44e9c33b06a6d967ef9d7 (diff) | |
Notes
Diffstat (limited to 'libexec/bootpd/getether.c')
| -rw-r--r-- | libexec/bootpd/getether.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/bootpd/getether.c b/libexec/bootpd/getether.c index cf01b03fe4d0..8f31bcbbe09f 100644 --- a/libexec/bootpd/getether.c +++ b/libexec/bootpd/getether.c @@ -7,7 +7,7 @@ * If you figure out how to do this on another system, * please let me know. <gwr@mc.com> * - * $Id$ + * $Id: getether.c,v 1.7 1997/02/22 14:21:05 peter Exp $ */ #include <sys/types.h> @@ -195,7 +195,7 @@ getether(ifname, eap) char *enaddr; int unit = -1; /* which unit to attach */ - sprintf(devname, "/dev/%s", ifname); + snprintf(devname, sizeof(devname), "/dev/%s", ifname); fd = open(devname, 2); if (fd < 0) { /* Try without the trailing digit. */ |
