From 7a2569be14b4e2a3576ee34efdcee4317bcd6421 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Mar 2024 20:32:32 -0400 Subject: [PATCH] icontheme: Trust the compiler Just trust the compiler to replace strlen (literal) by the length. --- gtk/gtkicontheme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index f2ed9cecc0..3505b41d20 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -4004,7 +4004,7 @@ gtk_icon_paintable_new_for_file (GFile *file, char *uri; uri = g_file_get_uri (file); - icon->filename = g_strdup (uri + 11); /* resource:// */ + icon->filename = g_strdup (uri + strlen ("resource://")); g_free (uri); } else