Merge 73c2905839
into 1713aa7b4d
This commit is contained in:
commit
9d7f6a0458
|
@ -93,7 +93,9 @@ translate_opts(char *oldopts, FILE *out)
|
||||||
return (EOF);
|
return (EOF);
|
||||||
newopts[0] = '\0';
|
newopts[0] = '\0';
|
||||||
s = oldopts;
|
s = oldopts;
|
||||||
while ((o = strsep(&s, "-, ")) != NULL) {
|
while ((o = strsep(&s, ", ")) != NULL) {
|
||||||
|
if (o[0] == '-')
|
||||||
|
o++;
|
||||||
if (o[0] == '\0')
|
if (o[0] == '\0')
|
||||||
continue;
|
continue;
|
||||||
for (i = 0; i < ARRAY_SIZE(known_opts); ++i) {
|
for (i = 0; i < ARRAY_SIZE(known_opts); ++i) {
|
||||||
|
|
Loading…
Reference in New Issue