pass buffer word size correctly in both 32 and 64 bit flavors