[geany/geany] cb6282: Use G_DIR_SEPARATOR instead of / when getting short name

Jiří Techet git-noreply at geany.org
Sun May 22 14:36:44 UTC 2022


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Thu, 05 May 2022 11:17:13 UTC
Commit:      cb6282d9a778545c131720f96d29c79668e2a533
             https://github.com/geany/geany/commit/cb6282d9a778545c131720f96d29c79668e2a533

Log Message:
-----------
Use G_DIR_SEPARATOR instead of / when getting short name


Modified Paths:
--------------
    src/tagmanager/tm_source_file.c

Modified: src/tagmanager/tm_source_file.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -595,7 +595,7 @@ static gboolean tm_source_file_init(TMSourceFile *source_file, const char *file_
 			return FALSE;
 		}
 		source_file->file_name = tm_get_real_path(file_name);
-		source_file->short_name = strrchr(source_file->file_name, '/');
+		source_file->short_name = strrchr(source_file->file_name, G_DIR_SEPARATOR);
 		if (source_file->short_name)
 			++ source_file->short_name;
 		else



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list