]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
ui-log: add support for showing the full commit message
[ps-cgit] / ui-repolist.c
index ab050c788af1ca58564f9dd70c7ebc984feadabb..58331404b7e45482fd3162e6c5f624c89b4c7959 100644 (file)
@@ -19,7 +19,8 @@ time_t read_agefile(char *path)
 
        if (!(f = fopen(path, "r")))
                return -1;
-       fgets(buf, sizeof(buf), f);
+       if (fgets(buf, sizeof(buf), f) == NULL)
+               return -1;
        fclose(f);
        if (parse_date(buf, buf2, sizeof(buf2)))
                return strtoul(buf2, NULL, 10);
@@ -145,7 +146,7 @@ void cgit_print_repolist()
                        html("<td>");
                        cgit_summary_link("summary", NULL, "button", NULL);
                        cgit_log_link("log", NULL, "button", NULL, NULL, NULL,
-                                     0, NULL, NULL);
+                                     0, NULL, NULL, ctx.qry.showmsg);
                        cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
                        html("</td>");
                }