Selaa lähdekoodia

* zero command data buffer

Lelik P. Korchagin 3 vuotta sitten
vanhempi
sitoutus
882bbf1e27
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      main.c

+ 1 - 0
main.c

@@ -103,6 +103,7 @@ int main(int argc, char *argv[])
 
         uint8_t buffer[64];
         memset(buffer, 0, sizeof(buffer));
+        memset(command_data, 0, sizeof(command_data));
 
         if (argc == 2 && argv[1][0] == '.') {
                 command = 0x08;