From 7f07a36402ebf4ae199a0d54b6fec2ba7182a5ae Mon Sep 17 00:00:00 2001 From: Monsta Date: Sat, 19 Dec 2015 20:47:09 +0300 Subject: use g_strcmp0 instead of unsafe strcmp --- src/file-manager/fm-icon-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/file-manager/fm-icon-view.c') diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c index 21e2cc5c..19a32cda 100644 --- a/src/file-manager/fm-icon-view.c +++ b/src/file-manager/fm-icon-view.c @@ -1170,7 +1170,7 @@ get_sort_criterion_by_metadata_text (const char *metadata_text) /* Figure out what the new sort setting should be. */ for (i = 0; i < G_N_ELEMENTS (sort_criteria); i++) { - if (strcmp (sort_criteria[i].metadata_text, metadata_text) == 0) + if (g_strcmp0 (sort_criteria[i].metadata_text, metadata_text) == 0) { return &sort_criteria[i]; } -- cgit v1.2.1