Fix two actual errors found by Cppcheck; only 4 bytes of memory were zeroed because sizeof of an array as function argument is actually the size of a pointer.
Change format specifier to match the type of argument.