From 57be59e070a56ec9489f864525b63307f49db4ff Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sat, 26 Aug 2017 06:56:30 -0500 Subject: [PATCH] trival --- common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.cpp b/common.cpp index c7a36cc..083f9ad 100644 --- a/common.cpp +++ b/common.cpp @@ -512,7 +512,7 @@ int read_file(const char * file,string &output) // static char buf[max_len+100]; string buf0; buf0.reserve(max_len+200); - char * buf=buf0.c_str(); + char * buf=(char *)buf0.c_str(); buf[max_len]=0; //buf[sizeof(buf)-1]=0; int fd=open(file,O_RDONLY); @@ -659,7 +659,7 @@ vector parse_conf_line(const string& s0) { string s=s0; s.reserve(s.length()+200); - char *buf=s.c_str(); + char *buf=(char *)s.c_str(); //char buf[s.length()+200]; char *p=buf; int i=int(s.length())-1;