Module: wine Branch: master Commit: 5d1995500792eaece879fcc84a952ed1a7eeab87 URL: https://gitlab.winehq.org/wine/wine/-/commit/5d1995500792eaece879fcc84a952ed...
Author: Matteo Bruni mbruni@codeweavers.com Date: Fri Nov 24 21:48:06 2023 +0100
tools: Print the correct option in error messages.
---
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++) {