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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-10-08 11:04:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-08 11:05:16 +0300
commitbe92598a85f6014b4b03fc910a192829e1622fef (patch)
treee9b4713f813e6049c9e1939b9b059375b63a8520 /source/blender/blenlib/intern/storage.c
parent9fdc3abb84d99f458ee5cc57b94f93969ed193c5 (diff)
Off by one error in own recent commit
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
-rw-r--r--source/blender/blenlib/intern/storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 04d5e35355a..f7a8664c739 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -93,7 +93,7 @@ char *BLI_current_working_dir(char *dir, const size_t maxncpy)
if (pwd) {
size_t srclen = BLI_strnlen(pwd, maxncpy);
if (srclen != maxncpy) {
- memcpy(dir, pwd, srclen);
+ memcpy(dir, pwd, srclen + 1);
return dir;
}
else {