Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbe545ea

Browse files
committed
Fix for "--" options. Allow --xxx as a valid flag, from NetBSD fix.
1 parent790259a commitbe545ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/utils/getopt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const char *ostr;
7171
place=EMSG;
7272
return-1;
7373
}
74-
if (place[1]&&*++place=='-')
74+
if (place[1]&&*++place=='-'&&place[1]=='\0')
7575
{/* found "--" */
7676
++optind;
7777
place=EMSG;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp