diff --git a/adhocify.c b/adhocify.c index 2631e05..b5e73ac 100644 --- a/adhocify.c +++ b/adhocify.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 + * Copyright (c) 2014-2017 Albert S. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -587,7 +587,8 @@ void parse_options(int argc, char **argv) } prog = argv[optind++]; - if(optind < argc) + + if(optind <= argc) { fill_script_arguments(argc - optind, &argv[optind]); }