1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

tools: Print the correct option in error messages.

This commit is contained in:
Matteo Bruni 2023-11-24 21:48:06 +01:00 committed by Alexandre Julliard
parent c944db5fc0
commit 5d19955007

View file

@ -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++)
{