This commit is contained in:
rmacklem 2024-09-10 14:26:17 -07:00 committed by GitHub
commit 9d7f6a0458
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

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