Due to a missing break in the for(;;) loop, causing the loop to walk beyond end of string argv[0], causing random behaviour.