mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 13:27:36 +08:00
line end CRLF
This commit is contained in:
parent
70d02c24cd
commit
079d8c9ebc
@ -1,17 +1,17 @@
|
||||
diff -ur a/server/server.c b/server/server.c
|
||||
--- a/server/server.c
|
||||
+++ b/server/server.c
|
||||
@@ -1942,12 +1942,12 @@
|
||||
text = (char*)malloc(strlen(protocol) - 11);
|
||||
memcpy(text, protocol, strlen(protocol) - 11);
|
||||
int length = strlen(protocol) - 11;
|
||||
- free(protocol);
|
||||
obfs = (char*)malloc(length);
|
||||
memset(protocol, 0x00, length);
|
||||
memcpy(protocol, text, length);
|
||||
LOGI("protocol compatible enable, %s", protocol);
|
||||
free(text);
|
||||
+ free(protocol);
|
||||
protocol_compatible = 1;
|
||||
}
|
||||
}
|
||||
diff -ur a/server/server.c b/server/server.c
|
||||
--- a/server/server.c
|
||||
+++ b/server/server.c
|
||||
@@ -1942,12 +1942,12 @@
|
||||
text = (char*)malloc(strlen(protocol) - 11);
|
||||
memcpy(text, protocol, strlen(protocol) - 11);
|
||||
int length = strlen(protocol) - 11;
|
||||
- free(protocol);
|
||||
obfs = (char*)malloc(length);
|
||||
memset(protocol, 0x00, length);
|
||||
memcpy(protocol, text, length);
|
||||
LOGI("protocol compatible enable, %s", protocol);
|
||||
free(text);
|
||||
+ free(protocol);
|
||||
protocol_compatible = 1;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user