sizeof?

If i pass the lenght, thats also fine. But currently that doesnt work too..

Then you're doing it wrong.