diff --git a/source/sw/src/border.cpp b/source/sw/src/border.cpp index 8e89099e4..4371b317d 100644 --- a/source/sw/src/border.cpp +++ b/source/sw/src/border.cpp @@ -173,7 +173,7 @@ void ClearStartMost(void) for (i = 0; i < xdim; i++) startdmost[i] = ydim; - memset(startumost, 0, sizeof(startumost)); + memset(startumost, 0, xdim * sizeof(int16_t)); } void