]> git.armaanb.net Git - stagit.git/blobdiff - urmoms.c
compat: add strlcpy, strlcat, for glibc
[stagit.git] / urmoms.c
index 62eebcacd81bc7d90a2449cf0223e7a12260a02a..2c976bacdb26dae0ade5c528881eadddb3fd7abe 100644 (file)
--- a/urmoms.c
+++ b/urmoms.c
 #include <string.h>
 #include <unistd.h>
 
+#include <git2.h>
+
+#include "compat.h"
 #include "config.h"
-#include "git2.h"
 
 struct commitinfo {
        const git_oid *id;
@@ -226,7 +228,7 @@ writeheader(FILE *fp)
        fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />\n",
                name, relpath);
        fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
-       fputs("</head>\n<body>\n\n<table><tr><td>", fp);
+       fputs("</head>\n<body>\n<table><tr><td>", fp);
        fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
                relpath, relpath);
        fputs("</td><td><h1>", fp);