mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
parent
a9ea3cd76d
commit
77172463a3
1 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ string strprintf(const char* format, ...)
|
|||
if (ret >= 0 && ret < limit)
|
||||
break;
|
||||
if (p != buffer)
|
||||
delete p;
|
||||
delete[] p;
|
||||
limit *= 2;
|
||||
p = new char[limit];
|
||||
if (p == NULL)
|
||||
|
@ -279,7 +279,7 @@ string strprintf(const char* format, ...)
|
|||
}
|
||||
string str(p, p+ret);
|
||||
if (p != buffer)
|
||||
delete p;
|
||||
delete[] p;
|
||||
return str;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue