Merging r41120 through from trunk r41139 into soc-2011-tomato
[blender.git] / source / blender / blenloader / intern / readblenentry.c
index 1a7096e..c671674 100644 (file)
@@ -288,7 +288,7 @@ BlendFileData *BLO_read_from_memfile(Main *oldmain, const char *filename, MemFil
        fd = blo_openblendermemfile(memfile, reports);
        if (fd) {
                fd->reports= reports;
-               strcpy(fd->relabase, filename);
+               BLI_strncpy(fd->relabase, filename, sizeof(fd->relabase));
                
                /* clear ob->proxy_from pointers in old main */
                blo_clear_proxy_pointers_from_lib(oldmain);