mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-25 22:34:27 +00:00
parent
a9ea3cd76d
commit
77172463a3
@ -271,7 +271,7 @@ string strprintf(const char* format, ...)
|
|||||||
if (ret >= 0 && ret < limit)
|
if (ret >= 0 && ret < limit)
|
||||||
break;
|
break;
|
||||||
if (p != buffer)
|
if (p != buffer)
|
||||||
delete p;
|
delete[] p;
|
||||||
limit *= 2;
|
limit *= 2;
|
||||||
p = new char[limit];
|
p = new char[limit];
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
@ -279,7 +279,7 @@ string strprintf(const char* format, ...)
|
|||||||
}
|
}
|
||||||
string str(p, p+ret);
|
string str(p, p+ret);
|
||||||
if (p != buffer)
|
if (p != buffer)
|
||||||
delete p;
|
delete[] p;
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user