Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Commit

Permalink
segv bug is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
esm-tmori committed Jul 4, 2018
1 parent 64fff1b commit 5b9540b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Binary file modified bin/linux/athrill
Binary file not shown.
2 changes: 1 addition & 1 deletion sample/barmetal/step6/arg_sakura.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-l 42 ./main.c
-l 9 ./vector.S

Binary file modified trunk/src/bin/athrill
Binary file not shown.
5 changes: 4 additions & 1 deletion trunk/src/main/option/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ CmdOptionType *parse_args(int argc, const char* argv[])
printf("t = %llu\n", cmd_option.timeout);
printf("p = %s\n", (cmd_option.fifocfgpath != NULL) ? cmd_option.fifocfgpath : "NULL");
#endif

if (optind >= argc) {
printf("ERROR: not found <load file>\n");
return NULL;
}
memcpy(cmd_option.load_file.filepath.str, argv[optind], strlen(argv[optind]));
cmd_option.load_file.filepath.str[strlen(argv[optind])] = '\0';
cmd_option.load_file.filepath.len = strlen(argv[optind]);
Expand Down

0 comments on commit 5b9540b

Please sign in to comment.