From ecfdda30cde14dd169b3d66703d034bbc8091124 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Mon, 2 Oct 2006 16:11:57 +0000 Subject: [PATCH] - fix for relative path: BLI_strncpy needs to be passed len+1 ! (introduced by my last patch - ouch) --- source/blender/blenlib/intern/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index 28831018fa1..b26f9b5b3d8 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -822,7 +822,7 @@ int BLI_convertstringcode(char *path, const char *basepath, int framenum) char base[FILE_MAXDIR]; char vol[3] = {'\0', '\0', '\0'}; - BLI_strncpy(vol, path, 2); + BLI_strncpy(vol, path, 3); wasrelative= (strncmp(vol, "//", 2)==0); #ifdef WIN32