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:
authormano-wii <germano.costa@ig.com.br>2018-09-19 15:04:55 +0300
committermano-wii <germano.costa@ig.com.br>2018-09-19 15:04:55 +0300
commit238a270d8fd63a096fdac86a1e24738ed8399443 (patch)
treecee38606d17c8a9442ae8268b81e6e7d477c9379 /source
parent340527cd37ad8b2be0285ed4561d15f0f39bc5be (diff)
Fix possible misuse of `BLI_strncpy`.
Same issue as rB39f7c8256d58.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/suggestions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/suggestions.c b/source/blender/blenkernel/intern/suggestions.c
index 043fc813b95..2e48599a113 100644
--- a/source/blender/blenkernel/intern/suggestions.c
+++ b/source/blender/blenkernel/intern/suggestions.c
@@ -246,12 +246,12 @@ void texttool_docs_show(const char *docs)
/* Ensure documentation ends with a '\n' */
if (docs[len - 1] != '\n') {
documentation = MEM_mallocN(len + 2, "Documentation");
- BLI_strncpy(documentation, docs, len);
+ memcpy(documentation, docs, len);
documentation[len++] = '\n';
}
else {
documentation = MEM_mallocN(len + 1, "Documentation");
- BLI_strncpy(documentation, docs, len);
+ memcpy(documentation, docs, len);
}
documentation[len] = '\0';
}