diff --git a/firmware/pinmatrix.c b/firmware/pinmatrix.c index c3a5aac99c..e2234292a8 100644 --- a/firmware/pinmatrix.c +++ b/firmware/pinmatrix.c @@ -69,7 +69,7 @@ void pinmatrix_done(char *pin) } i++; } - memset(pinmatrix_perm, 'X', sizeof(pinmatrix_perm)); + memset(pinmatrix_perm, 'X', sizeof(pinmatrix_perm) - 1); } #if DEBUG_LINK