Hi, there has been a modification in this revision that causes concatenation of paths in file history
A simple mistake in a string copy and a one-liner fix :)
Index: source/blender/windowmanager/intern/wm_files.c =================================================================== --- source/blender/windowmanager/intern/wm_files.c (revision 34828) +++ source/blender/windowmanager/intern/wm_files.c (working copy) @@ -502,7 +502,7 @@ recent = (RecentFile*)MEM_mallocN(sizeof(RecentFile),"RecentFile"); recent->filepath = (char*)MEM_mallocN(sizeof(char)*(strlen(G.main->name)+1), "name of file"); recent->filepath[0] = '\0'; - BLI_strncpy(recent->filepath, G.main->name, sizeof(recent->filepath)); + BLI_strncpy(recent->filepath, G.main->name, sizeof(G.main->name)); BLI_addhead(&(G.recent_files), recent); /* write current file to recent-files.txt */ fprintf(fp, "%s\n", recent->filepath);
_______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
