aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremias Stotter <jeremias@stotter.eu>2023-10-15 15:54:08 +0200
committerJeremias Stotter <jeremias@stotter.eu>2023-10-15 15:54:08 +0200
commitd463382e74245b2d0cba4cf20e428ab60864c11c (patch)
tree3e924bc7b5a31bd7d2febe5ab279477f9292a5d0
parentbd3685fbcf2c07af1f72e56b8976e59796d41395 (diff)
downloadnetwork-simulator-d463382e74245b2d0cba4cf20e428ab60864c11c.tar.gz
network-simulator-d463382e74245b2d0cba4cf20e428ab60864c11c.tar.bz2
network-simulator-d463382e74245b2d0cba4cf20e428ab60864c11c.zip
Fix a bug
-rw-r--r--gui_device.c2
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++) {
Jeremias Stotters git repositories generated by CGIT