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
@@ -50,6 +50,10 @@
 
 #include "mrsrc.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 namespace po = boost::program_options;
 namespace fs = std::filesystem;
 
@@ -814,8 +818,8 @@
 						
 						case ELFCLASS64:
 						{
-							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;
