From d920e5d62020d751ccaa3491cc66275ade749011 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 27 Dec 2024 18:52:48 +1100 Subject: building and running on windows with visual studio --- packer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packer.c') 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); -- cgit v1.2.3-54-g00ecf