Be more explicit when stripping the .git suffix

This commit is contained in:
sin 2016-01-06 17:44:22 +00:00
parent cae9950407
commit 264aef81d5

View file

@ -152,7 +152,8 @@ writelog(FILE *fp)
if (!(stripped_name = strdup(name)))
err(1, "strdup");
if ((p = strrchr(stripped_name, '.')))
*p = '\0';
if (!strcmp(p, ".git"))
*p = '\0';
xmlencode(fp, stripped_name, strlen(stripped_name));
fputs("</a></td><td>", fp);