Skip to content

Commit

Permalink
fix bug with -o introduced in 2ac318b
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-taylor committed Nov 8, 2023
1 parent ca916f5 commit 4bfcdd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compile_time_python/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def parse_arg(arg, remaining_args, options):
elif arg == "--help":
print()
sys.exit(0)
elif arg == "-x":
elif arg.startswith("-o"):
if arg == "-o":
if remaining_args:
options.object_pathname = remaining_args.pop(0)
Expand Down
3 changes: 1 addition & 2 deletions tests/run_time_errors/unterminated_strcat.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <string.h>
#include <unistd.h>

int main(void) {
char c = 'd';
char s[5];
strcat(s, &c);
}
}

0 comments on commit 4bfcdd3

Please sign in to comment.