Avoid buffer overruns in applesmc driver