Fixed strncmp function

The variable `i` needs to be initialised to 0 for the function to work :P