summaryrefslogtreecommitdiff
path: root/src/perl
diff options
context:
space:
mode:
Diffstat (limited to 'src/perl')
-rw-r--r--src/perl/perl-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perl/perl-core.c b/src/perl/perl-core.c
index 08d0738c..c487c393 100644
--- a/src/perl/perl-core.c
+++ b/src/perl/perl-core.c
@@ -190,7 +190,7 @@ static char *script_file_get_name(const char *path)
{
char *name;
- name = g_strdup(g_basename(path));
+ name = g_path_get_basename(path);
script_fix_name(name);
return name;
}