diff options
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r-- | crawl-ref/source/libutil.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index f59eab1ee7..5e2752de6d 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -416,10 +416,7 @@ int snprintf( char *str, size_t size, const char *format, ... ) char *buff = new char [ 10 * size ]; // hopefully enough if (!buff) - { - fprintf(stderr, "Out of memory\n"); - exit(1); - } + end(1, false, "Out of memory\n"); vsprintf( buff, format, argp ); strncpy( str, buff, size ); |