Fix log message filtering

Taking the sizeof a pointer doesn't give you the array length!