The snprintfs into the header had the wrong length, you need to specify the real string lenght or the terminating \0 is not written correctly.
Also added a overflow check to normalise.
Check argv 1+2 before diffing if they are not bigger than the header allows.
More verbose usage string.
The snprintfs into the header had the wrong length, you need to specify the real string lenght or the terminating \0 is not written correctly. Also added a overflow check to normalise. Check argv 1+2 before diffing if they are not bigger than the header allows. More verbose usage string.