From d20c129a9cef276dd7d54c3cd03a6e4cfb024cfa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 9 May 2012 09:24:15 +0000 Subject: style cleanup: whitespace/operators --- source/blender/blenlib/intern/path_util.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/intern/path_util.c') 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 */ -- cgit v1.2.3