if (res != tmp)
free(tmp);
-
+
return res;
}
return ;
}
-
f_name = malloc(strlen(pkg->name)+1+strlen(version->version)+1);
sprintf(f_name, "%s_%s", pkg->name, version->version);
path = path_new(dir, f_name, ".html");
script_tpl = "var data = %s;\n ppastats_ver();";
- script = malloc(strlen(script_tpl) - 2 +strlen(json) + 1);
+ script = malloc(strlen(script_tpl) - 2 + strlen(json) + 1);
sprintf(script, script_tpl, json);
-
+
create_html(path, f_name, body, script);
-
+
free(json);
free(path);
free(f_name);
-
}
static void