Fix potential overrun when adding a size_t to a UINT16. (nw)