X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;h=7fb43bc1b487e75c9bdb93c0dbc6fe0560313e45;hp=f6d80f70dad29be2a75a496a7c0b36e2a523cc4a;hb=31e9cb26642187e571f178ddcfa268ce7c4e56cc;hpb=8bad3792d398953a742ddba82a86034130c77509 diff --git a/src/util.cpp b/src/util.cpp index f6d80f7..7fb43bc 100644 --- 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(); }