diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-03-01 15:52:00 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-03-01 15:52:00 +0300 |
commit | 900199d2158f127d6bbcab7e770e4c110bad12dc (patch) | |
tree | b2ce75ab1ac0413e20e2d4453edde5e3da57e9d5 | |
parent | 5bf1bf645c8a0415c67b040821d6389618ca099a (diff) |
Fix [#26207] Render.exe mangles paths in mysterious and awesome ways
Reported by Edwin Amsler
The function for extrapolating the template name with the frame number didn't properly NULL-terminate the
resulting string, this causing broken names and weird paths (if you were lucky - totally unusuable names
detected while stepping through the code).
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 3b26f9f8e4d..7b6afd6b884 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -609,6 +609,7 @@ int BLI_path_frame(char *path, int frame, int digits) p= tmp + ch_sta; p += sprintf(p, format, frame); memcpy(p, path + ch_end, strlen(path + ch_end)); + *(tmp+strlen(path)) = '\0'; #endif strcpy(path, tmp); return 1; |