29.09.2016, 17:23
You're checking if the length is exactly 1 while it should presumably be 4 or greater. In that case the second strlen if-statement is completely redundant because if the length is not less than 4 then it is obviously 4 or greater.