Pattern: Incomplete array fill
Issue: -
The array buffer
is filled incompletely. The function memset()
needs the size given in bytes, but an element of the given array is larger than one byte. Did you forget to multiply the size with sizeof(*buffer)
?