git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Merge pull request #274 from svost/patch
[novacoin.git]
/
src
/
util.cpp
diff --git
a/src/util.cpp
b/src/util.cpp
index
f6d80f7
..
7fb43bc
100644
(file)
--- a/
src/util.cpp
+++ b/
src/util.cpp
@@
-331,7
+331,7
@@
string vstrprintf(const char *format, va_list ap)
if (p != buffer)
delete[] p;
limit *= 2;
- p = new char[limit];
+ p = new(nothrow) char[limit];
if (p == NULL)
throw std::bad_alloc();
}