From cd279f99fc3249c731ced737ca88fb66f9c3801c Mon Sep 17 00:00:00 2001
From: Jan Willamowius <jan@willamowius.de>
Date: 周三, 24 4月 2019 05:33:23 +0800
Subject: [PATCH] fix switch to add extra_data to license, revert change that broke copying of nul byte at end of date

---
 src/library/os/os.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/library/os/os.h b/src/library/os/os.h
index 13c52f9..d953d1a 100644
--- a/src/library/os/os.h
+++ b/src/library/os/os.h
@@ -14,6 +14,10 @@
 
 #include "../base/base.h"
 #include <stddef.h>
+#include <string.h>
+#include <ctype.h>
+#include <sys/types.h>
+#include <unistd.h>
 //definition of size_t
 #include <stdlib.h>
 #ifdef __unix__
@@ -31,7 +35,7 @@
 typedef struct {
 	int id;
 	char description[1024];
-	unsigned char mac_address[6];
+	unsigned char mac_address[8];
 	unsigned char ipv4_address[4];
 	IFACE_TYPE type;
 } OsAdapterInfo;

--
Gitblit v1.9.1