diff options
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; } |