commit | 079bd012433656146cd2d85cc9e9ec0f64b746f7 | [log] [tgz] |
---|---|---|
author | natalie.chen <natalie.chen@mediatek.com> | Thu Feb 18 15:25:44 2016 +0800 |
committer | natalie.chen <natalie.chen@mediatek.com> | Thu Feb 18 15:25:44 2016 +0800 |
tree | 79e8707ca69b6ccb6d12cc04f9b86ec27ced49b2 | |
parent | e22be3d718e7d9b869179f3aba2f124c0e6676fa [diff] |
fix bug
diff --git a/src/backend.c b/src/backend.c index 0186768..0a97b64 100644 --- a/src/backend.c +++ b/src/backend.c
@@ -219,7 +219,7 @@ while ((end - start) > 1 && *(end-1) == '/') end--; //get rid of trailing ".git" - if ((end - start) > 4 && strcmp(end-4, ".git") == 0) + if ((end - start) > 4 && strncmp(end-4, ".git", 4) == 0) end -= 4; hash = gen_hash(px, start, (end - start));