Without this patch GV segfaults when reading ~/.gv as produced by State -> Setup Options -> Save diff -ur gv-3.6.2.orig/src/resource.c gv-3.6.2/src/resource.c --- gv-3.6.2.orig/src/resource.c 2005-08-10 13:33:21.000000000 +0200 +++ gv-3.6.2/src/resource.c 2007-03-30 18:51:44.000000000 +0200 @@ -137,7 +137,7 @@ /* ### system resources ################# */ INFMESSAGE(checking for system resources) - rpath = GV_XtMalloc (strlen (GV_LIBDIR) + strlen ("/gv_system.ad")); + rpath = GV_XtMalloc (strlen (GV_LIBDIR) + strlen ("/gv_system.ad") + 1); rpath[0] = '\0'; strcat (rpath, GV_LIBDIR); strcat (rpath, "/gv_system.ad");