if (c == '\n') { break; }
wallet_GetLine(nsInputFileStream& strm, nsString& line){  const PRUint32 kInitialStringCapacity = 64;  /* read the line */  line.Truncate(0);    PRInt32 stringLen = 0;  PRInt32 stringCap = kInitialStringCapacity;  line.SetCapacity(stringCap);    PRUnichar c;  for (;;) {    c = Wallet_UTF8Get(strm);    if (c == '\n') {      break;    }    /* note that eof is not set until we read past the end of the file */    if (strm.eof()) {      return -1;    }    if (c != '\r') {      stringLen ++;      // buffer string grows      if (stringLen == stringCap)      {        stringCap += stringCap;   // double buffer len        line.SetCapacity(stringCap);      }      line += c;    }  }  return NS_OK;}