fixed a bug: set argv[argc]=NULL