Fixed copying command line arguments

This commit is contained in:
Jesse van den Kieboom 2009-01-28 15:10:24 +01:00
parent 93b84c4366
commit e2a2f45469

View file

@ -499,6 +499,11 @@ gitg_window_load_repository(GitgWindow *window, gchar const *path, gint argc, gc
if (!haspath && argc)
{
ar = (gchar const **)g_new(gchar *, ++argc);
int i;
for (i = 0; i < argc - 1; ++i)
ar[i] = argv[i];
ar[argc - 1] = path;
}