summaryrefslogtreecommitdiff
path: root/packer.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-27 18:52:48 +1100
committerquou <quou@disroot.org>2024-12-27 18:52:48 +1100
commitd920e5d62020d751ccaa3491cc66275ade749011 (patch)
treee806a95c598e255f9883de98cc350a3b9279d0ce /packer.c
parente8c93463b2ae5114f0c88e768e5625abac9d5a50 (diff)
building and running on windows with visual studio
Diffstat (limited to 'packer.c')
-rw-r--r--packer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/packer.c b/packer.c
index 79acd2e..283c11f 100644
--- a/packer.c
+++ b/packer.c
@@ -49,7 +49,7 @@ int main(int argc, const char** argv) {
print_err("Hash table error.\n");
return 5;
}
- strcpy(e->name, argv[i + 3] + strlen(workingdir) + strlen(dsep));
+ strcpy(e->name, argv[i + 3]);
}
fwrite(magic, 1, 4, outfile);
fwrite(&pack->file_count, 1, 4, outfile);