diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-06 02:50:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-06 02:50:55 +0300 |
commit | 2f366d1544ecc5618d7190b779ccc75f2f144d0a (patch) | |
tree | 699c5b52c7f8768bd46720b1824bee3565e2dff9 /source/blender/editors/physics | |
parent | 9668c29ba00ed830109665ea132b6292cdfe9e2a (diff) |
use BLI_strnlen rather then strlen when comparing against fixed lengths.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/physics_fluid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/physics/physics_fluid.c b/source/blender/editors/physics/physics_fluid.c index 1801116fe01..da8e7e063f4 100644 --- a/source/blender/editors/physics/physics_fluid.c +++ b/source/blender/editors/physics/physics_fluid.c @@ -665,7 +665,7 @@ static int fluid_init_filepaths(Object *fsDomain, char *targetDir, char *targetF // invalid dir, reset to current/previous strcpy(blendDir, G.main->name); BLI_splitdirstring(blendDir, blendFile); - if(strlen(blendFile)>6){ + if(BLI_strnlen(blendFile, 7) > 6){ int len = strlen(blendFile); if( (blendFile[len-6]=='.')&& (blendFile[len-5]=='b')&& (blendFile[len-4]=='l')&& (blendFile[len-3]=='e')&& (blendFile[len-2]=='n')&& (blendFile[len-1]=='d') ){ |