>>106305887
if you assume str could be NULL, it's pretty retarded to pass it to strlen since you probably don't have good knowledge of the string enough to ensure it's actually NUL terminated. it's pretty stupid.