Use sizeof() instead of strlen().
Merge pull request #2555 from cubicdaiya/issues/reduce_strlen

Use sizeof() instead of strlen().