Was reviewing -Wall and noticed this: treeview.c:1522: warning: array size (255) is smaller than minimum required (1024) char wd[_POSIX_PATH_MAX]; getcwd(wd, _POSIX_PATH_MAX - 1); from getcwd(3): The getcwd() function copies the absolute pathname of the current working directory into the memory referenced by buf and returns a pointer to buf. The size argument is the size, in bytes, of the array referenced by buf. I assume this refers to getcwd copying MAXPATHLEN (1024) into _POSIX_PATH_MAX (255) and overflowing wd. Not sure if this is correct, patch attached anyway.
fixed in 4.0.2. I will close the bug after removing all POSIX_PATH_MAX's from 4.1 and replacing with dynamic memory instead of static. The fix in 4.0.1 looks like this: gchar *wd = g_get_current_dir (); startup = g_strconcat(wd, "/",argv[1],NULL); g_free(wd); Which looks more portable.