diff options
author | Ton Roosendaal <ton@blender.org> | 2006-12-01 22:52:04 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-12-01 22:52:04 +0300 |
commit | 20ac94e8f06f776a15e2e0b4ec2ac3e57b8a3d02 (patch) | |
tree | f1fe516c1bb28acb59dba16b9f1683ce28350d10 /source/blender/blenlib | |
parent | ef389028b96d194320894ffd072e00adf2d3ff54 (diff) |
Two hours of fixing details based on Klocwork source review. Useful report,
although it has a lot of noise. Not to mention our bad string code gives
a load of warnings.
I've reviewed specifically:
- file reading/write
- dna and library code
- node system
- entire render module
Done a couple of files in src/ too, seemed to be nice errors.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index 39ddc8d2bbd..9fd5b40878e 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -892,15 +892,15 @@ int BLI_convertstringcode(char *path, const char *basepath, int framenum) return wasrelative; } -void BLI_splitdirstring(char *di,char *fi) +void BLI_splitdirstring(char *di, char *fi) { char *lslash= BLI_last_slash(di); if (lslash) { - strcpy(fi, lslash+1); + BLI_strncpy(fi, lslash+1, FILE_MAXFILE); *(lslash+1)=0; } else { - strcpy(fi, di); + BLI_strncpy(fi, di, FILE_MAXFILE); di[0]= 0; } } |