]> mj.ucw.cz Git - minsk.git/commitdiff
Fixed crash when using the --set-password option
authorMartin Mares <mj@ucw.cz>
Sun, 24 Apr 2022 19:38:16 +0000 (21:38 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 24 Apr 2022 19:38:45 +0000 (21:38 +0200)
minsk.c

diff --git a/minsk.c b/minsk.c
index 6091229e5ee27e1eb40a0ca4dbbdf4341cda10e4..50038f6697ed40d61d3b45865ab11908383ab4cd 100644 (file)
--- a/minsk.c
+++ b/minsk.c
@@ -1284,7 +1284,7 @@ static void init_memory(int set_password)
       // not +00 00 0000 0000 (NOP). Otherwise, an empty program would reveal
       // the location of the password :)
       for (int i=0; i<memblocks; i++)
-        for (int j=0; i<MEM_SIZE; j++)
+        for (int j=0; j<MEM_SIZE; j++)
           mem[i][j] = 01000000000000ULL;
 
       // Store the password