diff --git a/src/emu/emu_args.c b/src/emu/emu_args.c index 362bb0f..62d4675 100644 --- a/src/emu/emu_args.c +++ b/src/emu/emu_args.c @@ -6,6 +6,7 @@ #include "emu_args.h" #include "common.h" +#include "path.h" #include #include @@ -59,4 +60,5 @@ emu_args_init(struct emu_args *args, int argc, char *argv[]) } args->tracedir = argv[optind]; + path_remove_trailing(args->tracedir); }