Change sizeof parameter as it is more safe.