[gnome-software/667-show-changelogs-for-rpm-ostree-updates] Apply 1 suggestion(s) to 1 file(s)



commit e720636092945cf237687809016de4feaacb026a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Oct 20 16:22:25 2022 +0000

    Apply 1 suggestion(s) to 1 file(s)

 plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index 5d9377c6c..e7f184b7c 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -2878,7 +2878,7 @@ sanitize_update_history_text (gchar *text)
        } G_STMT_END
 
        /* The first two lines begin with "ostree diff commit from/to:" - skip them. */
-       if (g_ascii_strncasecmp (read_pos, "ostree diff", 11) == 0)
+       if (g_ascii_strncasecmp (read_pos, "ostree diff", strlen ("ostree diff")) == 0)
                skip_after ('\n');
        if (g_ascii_strncasecmp (read_pos, "ostree diff", 11) == 0)
                skip_after ('\n');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]