1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2024-12-16 10:21:15 +01:00

Support dir argument bugfix.

This commit is contained in:
gyboth 2008-11-25 14:31:35 +00:00
parent ca797e6266
commit a48def2646
2 changed files with 4 additions and 2 deletions

View File

@ -144,7 +144,9 @@ main_parse_cl_arguments(gint *argc, gchar ***argv)
if(support_dir != NULL) if(support_dir != NULL)
{ {
gchar *fullpath = g_path_get_dirname(support_dir); gchar *fullpath = (support_dir[strlen(support_dir)] == G_DIR_SEPARATOR) ?
g_path_get_dirname(support_dir) :
g_strdup_printf("%s%s", support_dir, G_DIR_SEPARATOR_S);
file_add_support_directory_recursive(fullpath); file_add_support_directory_recursive(fullpath);
g_free(fullpath); g_free(fullpath);
g_free(support_dir); g_free(support_dir);