mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 06:19:31 +08:00
trival
This commit is contained in:
parent
fe77bb0c1a
commit
57be59e070
@ -512,7 +512,7 @@ int read_file(const char * file,string &output)
|
|||||||
// static char buf[max_len+100];
|
// static char buf[max_len+100];
|
||||||
string buf0;
|
string buf0;
|
||||||
buf0.reserve(max_len+200);
|
buf0.reserve(max_len+200);
|
||||||
char * buf=buf0.c_str();
|
char * buf=(char *)buf0.c_str();
|
||||||
buf[max_len]=0;
|
buf[max_len]=0;
|
||||||
//buf[sizeof(buf)-1]=0;
|
//buf[sizeof(buf)-1]=0;
|
||||||
int fd=open(file,O_RDONLY);
|
int fd=open(file,O_RDONLY);
|
||||||
@ -659,7 +659,7 @@ vector<string> parse_conf_line(const string& s0)
|
|||||||
{
|
{
|
||||||
string s=s0;
|
string s=s0;
|
||||||
s.reserve(s.length()+200);
|
s.reserve(s.length()+200);
|
||||||
char *buf=s.c_str();
|
char *buf=(char *)s.c_str();
|
||||||
//char buf[s.length()+200];
|
//char buf[s.length()+200];
|
||||||
char *p=buf;
|
char *p=buf;
|
||||||
int i=int(s.length())-1;
|
int i=int(s.length())-1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user