Permalink
Browse files

Remove the first commandline argument from ARGV

  • Loading branch information...
1 parent 163df79 commit f48bbc258bbab3191bd08a24f66ff24bd6635f80 @nbrown nbrown committed Apr 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/m0/c/m0_interp.c
@@ -40,7 +40,7 @@ main( int argc, const char *argv[]) {
exit(1);
(*interp)[ARGC] = argc - 1;
- (*interp)[ARGV] = (uint64_t)argv;
+ (*interp)[ARGV] = (uint64_t)&(argv[1]);
if (argc < 2) {
fprintf( stderr, "Usage: m0 <filename.mob>\n" );

0 comments on commit f48bbc2

Please sign in to comment.