diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-10-16 09:21:09 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-10-16 09:21:09 +0000 |
commit | 142817d167a9466bab9524602dae6b8f12261f61 (patch) | |
tree | 8b354d82d9ebecd2d39cb61860656f9bcf069c56 /usr.sbin/i4b/isdnd/main.c | |
parent | f564c6a2da75eca8beb14d6f54c17b9a7c2a828f (diff) | |
download | FreeBSD-src-142817d167a9466bab9524602dae6b8f12261f61.zip FreeBSD-src-142817d167a9466bab9524602dae6b8f12261f61.tar.gz |
Use strlcpy(3) instead of strcpy(3) to copy optarg into a fixed-size buffer.
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/i4b/isdnd/main.c')
-rw-r--r-- | usr.sbin/i4b/isdnd/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/i4b/isdnd/main.c b/usr.sbin/i4b/isdnd/main.c index b927d15..5c5a365 100644 --- a/usr.sbin/i4b/isdnd/main.c +++ b/usr.sbin/i4b/isdnd/main.c @@ -168,7 +168,7 @@ main(int argc, char **argv) break; case 'L': - strcpy(logfile, optarg); + strlcpy(logfile, optarg, sizeof(logfile)); break; case 'P': |