sizeof() usage mistake reported by cppcheck