summarylogtreecommitdiffstats
path: root/fix_file_eof.patch
diff options
context:
space:
mode:
authorrockybulwinkle2023-03-23 15:14:28 -0500
committerrockybulwinkle2023-03-23 15:14:28 -0500
commit980d669581c9eabeb3c70268fb6704496957339f (patch)
tree228aca5839c2d4538309b3be5fef6473f2b050b4 /fix_file_eof.patch
parentd5d2736477cfc1df9b17e946a308e633bb8e0d6a (diff)
downloadaur-ike.tar.gz
Merge mkurz's EOF patch. Now aarch64 compatible.
Diffstat (limited to 'fix_file_eof.patch')
-rw-r--r--fix_file_eof.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/fix_file_eof.patch b/fix_file_eof.patch
new file mode 100644
index 000000000000..172ef7427673
--- /dev/null
+++ b/fix_file_eof.patch
@@ -0,0 +1,24 @@
+diff --git a/old/source/libike/manager.file.cpp b/new/source/libike/manager.file.cpp
+index 42d2938..08f7c9b 100644
+--- a/source/libike/manager.file.cpp
++++ b/source/libike/manager.file.cpp
+@@ -208,8 +208,8 @@ bool _CONFIG_MANAGER::file_vpn_load( CONFIG & config, const char * path, bool sa
+
+ while( true )
+ {
+- char next;
+- char type;
++ int next;
++ int type;
+ BDATA name;
+ BDATA data;
+
+@@ -410,7 +410,7 @@ bool _CONFIG_MANAGER::file_vpn_del( CONFIG & config )
+
+ bool read_line_pcf( FILE * fp, BDATA & name, BDATA & data )
+ {
+- char next;
++ int next;
+ BDATA line;
+
+ name.del();