From 75a42c7d83eb8651b90f5b4637f57bf5cb611137 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 9 Jul 2024 17:40:01 -0300 Subject: [PATCH] event-widget: Truncate the correct string I shouldn't write code in a hurry --- src/gui/gcal-event-widget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/gcal-event-widget.c b/src/gui/gcal-event-widget.c index 09a5ff24..970a3e8a 100644 --- a/src/gui/gcal-event-widget.c +++ b/src/gui/gcal-event-widget.c @@ -374,8 +374,8 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self, if (truncated_location->len > LOCATION_MAX_LEN) { - g_string_truncate (string, LOCATION_MAX_LEN - 1); - g_string_append (string, "…"); + g_string_truncate (truncated_location, LOCATION_MAX_LEN - 1); + g_string_append (truncated_location, "…"); } /* Translators: %s is a URL informed as the location of the event */