Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2006-10-02 20:11:57 +0400
committerAndrea Weikert <elubie@gmx.net>2006-10-02 20:11:57 +0400
commitecfdda30cde14dd169b3d66703d034bbc8091124 (patch)
tree0285bd5390f1cabaa8ceddf87d88b871d4365dac /source
parentb62927b85c8b213bafcac7a2f2943665017e7261 (diff)
- fix for relative path: BLI_strncpy needs to be passed len+1 !
(introduced by my last patch - ouch)
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/util.c2
1 files changed, 1 insertions, 1 deletions
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