diff options
author | Andrea Weikert <elubie@gmx.net> | 2006-10-02 20:11:57 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2006-10-02 20:11:57 +0400 |
commit | ecfdda30cde14dd169b3d66703d034bbc8091124 (patch) | |
tree | 0285bd5390f1cabaa8ceddf87d88b871d4365dac /source/blender/blenlib | |
parent | b62927b85c8b213bafcac7a2f2943665017e7261 (diff) |
- fix for relative path: BLI_strncpy needs to be passed len+1 !
(introduced by my last patch - ouch)
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 2 |
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 |