From 04c167f18197eaa8c517cb19a24e5be4ebd4b644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= Date: Sat, 7 Oct 2023 20:05:01 -0300 Subject: [PATCH] final final GetChars fix on linux --- src/common/platform/posix/unix/gtk_dialogs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/platform/posix/unix/gtk_dialogs.cpp b/src/common/platform/posix/unix/gtk_dialogs.cpp index 28da8c11b..01fb5ee2c 100644 --- a/src/common/platform/posix/unix/gtk_dialogs.cpp +++ b/src/common/platform/posix/unix/gtk_dialogs.cpp @@ -292,9 +292,9 @@ public: store = gtk_list_store_new (3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT); for (int i = 0; i < numwads; ++i) { - const char *filepart = strrchr (wads[i].Path, '/'); + const char *filepart = strrchr (wads[i].Path.GetChars(), '/'); if (filepart == NULL) - filepart = wads[i].Path; + filepart = wads[i].Path.GetChars(); else filepart++; gtk_list_store_append (store, &iter);