diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-09 13:24:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-09 13:24:15 +0400 |
commit | d20c129a9cef276dd7d54c3cd03a6e4cfb024cfa (patch) | |
tree | bceac66f3b03f347900beec56c6efa2adc98beb9 /source/blender/blenlib/intern/path_util.c | |
parent | c2863e3f9b2a394ac943a8e0e982de8667e20b7e (diff) |
style cleanup: whitespace/operators
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 9f775028c1a..a18c297fdae 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -485,7 +485,9 @@ void BLI_path_rel(char *file, const char *relfile) while (*p == *q) #endif { - ++p; ++q; + p++; + q++; + /* don't search beyond the end of the string * in the rare case they match */ if ((*p=='\0') || (*q=='\0')) { @@ -513,7 +515,7 @@ void BLI_path_rel(char *file, const char *relfile) while (p && p < lslash) { if (*p == '/') strcat(res, "../"); - ++p; + p++; } strcat(res, q+1); /* don't copy the slash at the beginning */ |