summaryrefslogtreecommitdiff
path: root/src/perl
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2014-06-27 14:41:54 +0200
committerAlexander Færøy <ahf@0x90.dk>2014-06-27 14:41:54 +0200
commit113f1724d72724c1bb3e2111c0ce92a3cafd67fa (patch)
tree86f2619c8304a3b2743cb29b41ad32b83bf71517 /src/perl
parentb8c2915d79a1e0ccec92e627b716fe0a6af81fc6 (diff)
parent9d6cd87b0f548aba2094504c6ef71aec69f9d7fb (diff)
downloadirssi-113f1724d72724c1bb3e2111c0ce92a3cafd67fa.zip
Merge pull request #44 from dajohi/g_basename
Replace deprecated g_basename with g_path_get_basename.
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 3b00ce18..ee0c845e 100644
--- a/src/perl/perl-core.c
+++ b/src/perl/perl-core.c
@@ -191,7 +191,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;
}