mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04:00
Added os specific RsFileUtil::rs_getline
This commit is contained in:
parent
38b4c50635
commit
753250b4e8
3 changed files with 60 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue