diff options
author | Jeremias Stotter <jeremias@stotter.eu> | 2023-10-15 15:54:08 +0200 |
---|---|---|
committer | Jeremias Stotter <jeremias@stotter.eu> | 2023-10-15 15:54:08 +0200 |
commit | d463382e74245b2d0cba4cf20e428ab60864c11c (patch) | |
tree | 3e924bc7b5a31bd7d2febe5ab279477f9292a5d0 | |
parent | bd3685fbcf2c07af1f72e56b8976e59796d41395 (diff) | |
download | network-simulator-d463382e74245b2d0cba4cf20e428ab60864c11c.tar.gz network-simulator-d463382e74245b2d0cba4cf20e428ab60864c11c.tar.bz2 network-simulator-d463382e74245b2d0cba4cf20e428ab60864c11c.zip |
Fix a bug
-rw-r--r-- | gui_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui_device.c b/gui_device.c index f9b3799..be53108 100644 --- a/gui_device.c +++ b/gui_device.c @@ -180,7 +180,7 @@ void show_device_window(struct device* dev) { gtk_label_set_markup(GTK_LABEL(slot_label), slot_index); gtk_box_append(GTK_BOX(interface_box), slot_label); // Add the dropdown - char** interface_template_list = malloc_or_abort(interface_template_n + 2); + char** interface_template_list = malloc_or_abort(sizeof(char*) * (interface_template_n + 2)); interface_template_list[0] = "None"; // Fill up the dropdown for(int j = 0; j < interface_template_n; j++) { |