diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-06-06 16:04:54 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-06-06 16:06:34 +0200 |
commit | 50cf7cffff760e41774957ad8f1f92803142438e (patch) | |
tree | e4601300273297e28a508f6e46caeff62b32c364 /test | |
parent | 4cc9dee35e03d7b295a476f937ec0f2c43bb6592 (diff) |
Use g_path_get_basename instead of g_basename in gtk-cairo-test
Fixes bug #21361.
Diffstat (limited to 'test')
-rw-r--r-- | test/gtk-cairo-test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gtk-cairo-test.cc b/test/gtk-cairo-test.cc index 913f46d8..8c405685 100644 --- a/test/gtk-cairo-test.cc +++ b/test/gtk-cairo-test.cc @@ -165,7 +165,9 @@ main (int argc, char *argv []) if (argc == 1) { - fprintf (stderr, "usage: %s PDF-FILES...\n", g_basename (argv[0])); + char *basename = g_path_get_basename (argv[0]); + fprintf (stderr, "usage: %s PDF-FILES...\n", basename); + g_free (basename); return -1; } |