Skip to content

Commit 57be59e

Browse files
committed
trival
1 parent fe77bb0 commit 57be59e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ int read_file(const char * file,string &output)
512512
// static char buf[max_len+100];
513513
string buf0;
514514
buf0.reserve(max_len+200);
515-
char * buf=buf0.c_str();
515+
char * buf=(char *)buf0.c_str();
516516
buf[max_len]=0;
517517
//buf[sizeof(buf)-1]=0;
518518
int fd=open(file,O_RDONLY);
@@ -659,7 +659,7 @@ vector<string> parse_conf_line(const string& s0)
659659
{
660660
string s=s0;
661661
s.reserve(s.length()+200);
662-
char *buf=s.c_str();
662+
char *buf=(char *)s.c_str();
663663
//char buf[s.length()+200];
664664
char *p=buf;
665665
int i=int(s.length())-1;

0 commit comments

Comments
 (0)