Trying to be much to clever with byte sizes led to pain and frustration.
Using sizeof instead.