[PATCH 0/1] MR4527: tools: Print the correct option in error messages.
27 Nov
27 Nov
7:49 p.m.
New subject: [PATCH 1/1] tools: Print the correct option in error messages.
From: Matteo Bruni <mbruni(a)codeweavers.com> --- tools/tools.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools.h b/tools/tools.h index 67b13a0ed55..5372b5bd303 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -773,7 +773,7 @@ static inline struct strarray parse_options( int argc, char **argv, const char * char *start, *end; int i; -#define OPT_ERR(fmt) { callback( '?', strmake( fmt, argv[1] )); continue; } +#define OPT_ERR(fmt) { callback( '?', strmake( fmt, argv[i] )); continue; } for (i = 1; i < argc; i++) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4527
829
Age (days ago)
829
Last active (days ago)
1 comments
2 participants
participants (2)
-
Matteo Bruni -
Matteo Bruni (@Mystral)