Added os specific RsFileUtil::rs_getline

This commit is contained in:
thunder2 2021-12-21 09:03:56 +01:00
parent 38b4c50635
commit 753250b4e8
3 changed files with 60 additions and 1 deletions

View file

@ -409,7 +409,7 @@ bool TorProcess::tryReadControlPort()
char *line = nullptr;
size_t tmp_buffsize = 0;
size_t size = getline(&line,&tmp_buffsize,file);
size_t size = RsFileUtil::rs_getline(&line,&tmp_buffsize,file);
ByteArray data = ByteArray((unsigned char*)line,size).trimmed();
free(line);