Skip to content
Snippets Groups Projects
Commit e758a5c4 authored by Wolfgang Denk's avatar Wolfgang Denk Committed by Anatolij Gustschin
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 656f4c65
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment