From b7de8057da548b8399a1508f36a2b618330654e3 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Thu, 6 Feb 2020 21:50:22 -0800 Subject: [PATCH] That only needs to be uint16 --- src/wofi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wofi.c b/src/wofi.c index 70e1138..3f4aefd 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -65,7 +65,7 @@ static enum locations location; static bool no_actions; static uint64_t columns; static bool is_first = true; -static uint64_t widget_count = 0; +static uint16_t widget_count = 0; struct mode { void (*mode_exec)(const gchar* cmd); @@ -300,7 +300,7 @@ static GtkWidget* create_label(char* mode, char* text, char* search_text, char* wofi_property_box_add_property(WOFI_PROPERTY_BOX(box), "mode", mode); wofi_property_box_add_property(WOFI_PROPERTY_BOX(box), "action", action); char index[6]; - snprintf(index, sizeof(index), "%lu", ++widget_count); + snprintf(index, sizeof(index), "%u", ++widget_count); wofi_property_box_add_property(WOFI_PROPERTY_BOX(box), "index", index); if(allow_images) {