Comparation would always succeed.

Use memcmp instead of strcmp to handle zeroes correctly.