aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index d32852f..2c12de7 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -120,7 +120,7 @@ const char *cgit_repobasename(const char *reponame)
120 /* strip trailing slashes */ 120 /* strip trailing slashes */
121 while (p && rvbuf[p] == '/') rvbuf[p--] = 0; 121 while (p && rvbuf[p] == '/') rvbuf[p--] = 0;
122 /* strip trailing .git */ 122 /* strip trailing .git */
123 if (p >= 3 && !strncmp(&rvbuf[p-3], ".git", 4)) { 123 if (p >= 3 && !prefixcmp(&rvbuf[p-3], ".git")) {
124 p -= 3; rvbuf[p--] = 0; 124 p -= 3; rvbuf[p--] = 0;
125 } 125 }
126 /* strip more trailing slashes if any */ 126 /* strip more trailing slashes if any */