abspath.c: have SP around arithmetic operators

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Oct 15, 2013 at 15:25 UTC f1e835fa1375f3e1c60eedc87012d1a9c96ce511
1 file changed +2 -2
abspath.c
+2 -2
@@ -110,7 +110,7 @@ static const char *real_path_internal(const char *path, int die_on_error)
110 else
111 goto error_out;
112 }
113 - if (len && !is_dir_sep(buf[len-1]))
113 + if (len && !is_dir_sep(buf[len - 1]))
114 buf[len++] = '/';
115 strcpy(buf + len, last_elem);
116 free(last_elem);
@@ -201,7 +201,7 @@ const char *absolute_path(const char *path)
201 if (!cwd)
202 die_errno("Cannot determine the current working directory");
203 len = strlen(cwd);
204 - fmt = (len > 0 && is_dir_sep(cwd[len-1])) ? "%s%s" : "%s/%s";
204 + fmt = (len > 0 && is_dir_sep(cwd[len - 1])) ? "%s%s" : "%s/%s";
205 if (snprintf(buf, PATH_MAX, fmt, cwd, path) >= PATH_MAX)
206 die("Too long path: %.*s", 60, path);
207 }