silence compiler warning by casting strlen result to int