diff options
author | Junio C Hamano <junkio@cox.net> | 2006-08-08 15:42:20 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-08 15:42:20 -0700 |
commit | 102cb08521df5f33b30c0ef41a1078a61e593943 (patch) | |
tree | 907c6791951e3ae9bae1e0c88dba505a6bbac810 /builtin-mv.c | |
parent | efffea033457eedb90ad63596687564f797f12de (diff) | |
parent | 6c8d06aff107aa2132648d682a278111c1d08565 (diff) | |
download | git-102cb08521df5f33b30c0ef41a1078a61e593943.tar.gz |
Merge branch 'master' into mk/rename
Diffstat (limited to 'builtin-mv.c')
-rw-r--r-- | builtin-mv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-mv.c b/builtin-mv.c index e47942c135..ce8187c1e9 100644 --- a/builtin-mv.c +++ b/builtin-mv.c @@ -48,7 +48,8 @@ static const char *add_slash(const char *path) if (path[len - 1] != '/') { char *with_slash = xmalloc(len + 2); memcpy(with_slash, path, len); - strcat(with_slash + len, "/"); + with_slash[len++] = '/'; + with_slash[len] = 0; return with_slash; } return path; |