diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-09-19 15:04:55 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-09-19 15:04:55 +0300 |
commit | 238a270d8fd63a096fdac86a1e24738ed8399443 (patch) | |
tree | cee38606d17c8a9442ae8268b81e6e7d477c9379 /source/blender/blenkernel/intern/suggestions.c | |
parent | 340527cd37ad8b2be0285ed4561d15f0f39bc5be (diff) |
Fix possible misuse of `BLI_strncpy`.
Same issue as rB39f7c8256d58.
Diffstat (limited to 'source/blender/blenkernel/intern/suggestions.c')
-rw-r--r-- | source/blender/blenkernel/intern/suggestions.c | 4 |
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'; } |