diff options
author | jake <jake@FreeBSD.org> | 2002-04-02 04:24:59 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-04-02 04:24:59 +0000 |
commit | 2438d950085f45d68eba71953ef277efca4632d4 (patch) | |
tree | f590578722a03171a9f013bcad90f62f538604e4 /usr.bin/ktrdump/ktrdump.c | |
parent | 4a63b9d69ccbf1d5d4c34fdbd209efd9b8828b62 (diff) | |
download | FreeBSD-src-2438d950085f45d68eba71953ef277efca4632d4.zip FreeBSD-src-2438d950085f45d68eba71953ef277efca4632d4.tar.gz |
1. Add missing include of stdint.h.
2. Fix reversed arguments to strcpy.
Noticed by: davidc (2)
Diffstat (limited to 'usr.bin/ktrdump/ktrdump.c')
-rw-r--r-- | usr.bin/ktrdump/ktrdump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ktrdump/ktrdump.c b/usr.bin/ktrdump/ktrdump.c index a25ebab..dc8e8b4 100644 --- a/usr.bin/ktrdump/ktrdump.c +++ b/usr.bin/ktrdump/ktrdump.c @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include <kvm.h> #include <limits.h> #include <nlist.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -101,14 +102,14 @@ main(int ac, char **av) cflag = 1; break; case 'e': - strcpy(optarg, execfile); + strcpy(execfile, optarg); eflag = 1; break; case 'f': fflag = 1; break; case 'm': - strcpy(optarg, corefile); + strcpy(corefile, optarg); mflag = 1; break; case 'o': |