Use sizeof() instead of strlen().