Fixed memory allocation for stlink-gui

(Closes #1356)
pull/1373/head
nightwalker-87 2023-11-24 20:22:50 +01:00
rodzic 7dcb1302d8
commit 3efa7932fb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -313,7 +313,7 @@ static gpointer stlink_gui_populate_filemem_view(gpointer data) {
goto out_input;
}
gui->file_mem.size = (gsize) file_info;
gui->file_mem.size = file_size;
gui->file_mem.memory = g_malloc(gui->file_mem.size);
for (off = 0; off < (gint)gui->file_mem.size; off += MEM_READ_SIZE) {