Rev 4265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4265 | Rev 4279 | ||
---|---|---|---|
Line 384... | Line 384... | ||
384 | } else |
384 | } else |
385 | current_argv_len = str_size(current_argv); |
385 | current_argv_len = str_size(current_argv); |
386 | 386 | ||
387 | for (i = 0; long_options[i].name; i++) { |
387 | for (i = 0; long_options[i].name; i++) { |
388 | /* find matching long option */ |
388 | /* find matching long option */ |
389 | if (strncmp(current_argv, long_options[i].name, |
389 | if (str_lcmp(current_argv, long_options[i].name, |
390 | current_argv_len)) |
390 | str_nlength(current_argv, current_argv_len))) |
391 | continue; |
391 | continue; |
392 | 392 | ||
393 | if (str_size(long_options[i].name) == |
393 | if (str_size(long_options[i].name) == |
394 | (unsigned)current_argv_len) { |
394 | (unsigned)current_argv_len) { |
395 | /* exact match */ |
395 | /* exact match */ |