Description: Fix copy/paste error, add PATH_MAX define
Author: Maarten L. Hekkelman <maarten@hekkelman.com>
Last-Updated: Sun, 08 Nov 2020 20:10:03 +0100

--- a/mrc.cpp
+++ b/mrc.cpp
@@ -58,6 +58,10 @@
 #define PATH_MAX 1024
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 namespace po = boost::program_options;
 namespace fs = std::filesystem;
 
@@ -1097,8 +1101,8 @@
 					{
 						case ELFCLASS32:
 						{
-							Elf32_Ehdr hdr;
-							if (read(fd, &hdr, sizeof(hdr)) == sizeof(Elf32_Ehdr))
+							Elf64_Ehdr hdr;
+							if (read(fd, &hdr, sizeof(hdr)) == sizeof(Elf64_Ehdr))
 							{
 								elf_machine = hdr.e_machine;
 								elf_flags = hdr.e_flags;
