]> Nishi Git Mirror - clover.git/commitdiff
fix path issue
authornishi <nishi@cc13bd98-b292-b64a-ad22-c0789b689ca7>
Sun, 5 May 2024 07:51:52 +0000 (07:51 +0000)
committernishi <nishi@cc13bd98-b292-b64a-ad22-c0789b689ca7>
Sun, 5 May 2024 07:51:52 +0000 (07:51 +0000)
git-svn-id: file:///raid/svn-main/nishi-clover/trunk@11 cc13bd98-b292-b64a-ad22-c0789b689ca7

clover.c

index 9ec04ef22e43d3a540f56d9c5d690d4951755d93..3171fbb92edb35f8b82246ebfe2429ba63508aa2 100644 (file)
--- a/clover.c
+++ b/clover.c
@@ -39,7 +39,7 @@
 
 #include <expat.h>
 
-#define CLOVER_VERSION "1.0B"
+#define CLOVER_VERSION "1.0C"
 
 char* concat_str(const char* str1, const char* str2) {
        char* r = malloc(strlen(str1) + strlen(str2) + 1);
@@ -410,7 +410,7 @@ int parse_xml(const char* xml, const char* outdir) {
                        fclose(to);
                        free(from_path);
                        free(to_path);
-                       fprintf(f, "            <img src=\"/static/%s\">\n", page_icon);
+                       fprintf(f, "            <img src=\"%s/static/%s\">\n", http_path, page_icon);
                }
                if(page_title != NULL) {
                        fprintf(f, "            <h1>%s - %s</h1>\n", title, page_title);