]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-summary.c
ui-snapshot: set unused cgit_filter fields to zero
[ps-cgit] / ui-summary.c
index 3a7c7a75b000c949845af8e46c69df3757c1c0a9..63a5a754ba0297e8775c666495a885d942cf1b0e 100644 (file)
@@ -116,7 +116,7 @@ static char* append_readme_path(const char *filename, const char *ref, const cha
        if (!ref) {
                resolved_base = realpath(base_dir, NULL);
                resolved_full = realpath(full_path, NULL);
-               if (!resolved_base || !resolved_full || strncmp(resolved_base, resolved_full, strlen(resolved_base))) {
+               if (!resolved_base || !resolved_full || prefixcmp(resolved_full, resolved_base)) {
                        free(full_path);
                        full_path = NULL;
                }