diff options
author | Wolfgang Denk <wd@denx.de> | 2012-03-01 21:19:40 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2012-03-26 11:45:15 +0200 |
commit | e758a5c4a75eb0d29201422ffc97ef7d95a88df8 (patch) | |
tree | 781393e9cb854f98463ca97a48dae7501cb4fdd4 /tools | |
parent | 656f4c653785eb3fac84796da5d3bc04c4918290 (diff) | |
download | u-boot-artik-e758a5c4a75eb0d29201422ffc97ef7d95a88df8.tar.gz u-boot-artik-e758a5c4a75eb0d29201422ffc97ef7d95a88df8.tar.bz2 u-boot-artik-e758a5c4a75eb0d29201422ffc97ef7d95a88df8.zip |
mkenvimage: fix usage message
Don't use argv[0] for usage() because it may or may not be clobbered
by the previous call to basename(). Use "prg" instead as it is done
in the rest of the code.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mkenvimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index f78173163..64f5340b1 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -123,7 +123,7 @@ int main(int argc, char **argv) case ':': fprintf(stderr, "Missing argument for option -%c\n", optopt); - usage(argv[0]); + usage(prg); return EXIT_FAILURE; default: fprintf(stderr, "Wrong option -%c\n", optopt); |