diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-03 00:09:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-03 00:09:42 +0400 |
commit | 15be7b215f0ea53e68e114430267823e2b3fd37d (patch) | |
tree | 86b8ce182305c977bc5f5d78096572a15f913ea8 /source/blender/blenlib | |
parent | 213a45bed83bcb8afdc8ada8fd69b229a4a522f9 (diff) |
- changes to the sequencer so new strips use the data name.
- removed the name option for the sequence operators.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 045ac5a013f..2d5234aee34 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -107,20 +107,14 @@ int BLI_stringdec(const char *string, char *head, char *tail, unsigned short *nu if (found) break; } } - if (found){ + if (found) { if (tail) strcpy(tail, &string[nume+1]); - if (head) { - strcpy(head,string); - head[nums]=0; - } + if (head) BLI_strncpy(head, string, nums); if (numlen) *numlen = nume-nums+1; return ((int)atoi(&(string[nums]))); } if (tail) strcpy(tail, string + len); - if (head) { - strncpy(head, string, len); - head[len] = '\0'; - } + if (head) BLI_strncpy(head, string, nums); if (numlen) *numlen=0; return 0; } |