diff options
author | Wolfgang Denk <wd@denx.de> | 2012-03-02 01:19:40 +0400 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2012-03-26 13:45:15 +0400 |
commit | e758a5c4a75eb0d29201422ffc97ef7d95a88df8 (patch) | |
tree | 781393e9cb854f98463ca97a48dae7501cb4fdd4 /tools/mkenvimage.c | |
parent | 656f4c653785eb3fac84796da5d3bc04c4918290 (diff) | |
download | u-boot-e758a5c4a75eb0d29201422ffc97ef7d95a88df8.tar.xz |
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/mkenvimage.c')
-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 f78173163f..64f5340b1b 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); |