Skip to content

Commit

Permalink
Fixed memory allocation for stlink-gui
Browse files Browse the repository at this point in the history
(Closes #1356)
  • Loading branch information
Nightwalker-87 committed Nov 24, 2023
1 parent 7dcb130 commit 3efa793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stlink-gui/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3efa793

Please sign in to comment.