A few minor fixes

Hi Ed, I'd like to submit a few minor fixes for your Race emulator project:
- change printf parameter sign and size;
- close opened file in one of the code flow branches;
- use strncpy() instead of strcpy() on arg[1] to prevent buffer overflow.