Commit 481e0de0 changed the variable type from int to size_t, so don't cast the result of strlen to int anymore.