compliance with win32

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1023 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-02-08 14:35:52 +00:00
parent 78c07ca367
commit 96a9aee189

View File

@ -572,14 +572,13 @@ std::string p3Peers::GetRetroshareInvite()
std::string certstr ;
FILE *fcert = fopen(RsInit::load_cert.c_str(), "r");
char *line = NULL;
size_t len = 0 ;
char c ;
if(fcert == NULL)
return "Error: could not open certificate file." ;
while(getline(&line,&len,fcert) > 0)
certstr += std::string(line) ;
while( (c=fgetc(fcert))!=EOF)
certstr.push_back(c) ;
fclose(fcert) ;
std::string name = mAuthMgr->getName(ownId);