summaryrefslogtreecommitdiff
path: root/tools/mkenvimage.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2012-03-01 21:19:40 +0000
committerAnatolij Gustschin <agust@denx.de>2012-03-26 11:45:15 +0200
commite758a5c4a75eb0d29201422ffc97ef7d95a88df8 (patch)
tree781393e9cb854f98463ca97a48dae7501cb4fdd4 /tools/mkenvimage.c
parent656f4c653785eb3fac84796da5d3bc04c4918290 (diff)
downloadu-boot-imx-e758a5c4a75eb0d29201422ffc97ef7d95a88df8.zip
u-boot-imx-e758a5c4a75eb0d29201422ffc97ef7d95a88df8.tar.gz
u-boot-imx-e758a5c4a75eb0d29201422ffc97ef7d95a88df8.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c
index f781731..64f5340 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);