diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-03-12 15:16:35 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-03-13 10:43:25 +0100 |
commit | a74c2dce62189782375ceb7d818282a166521545 (patch) | |
tree | 3acc162a8ab774e26fdb013fcf246035ade2f162 /crawl-ref/source/util/levcomp.lpp | |
parent | ff1255ea7689a0b8e0809c9cb62f27b779a3c2de (diff) | |
download | crawl-ref-a74c2dce62189782375ceb7d818282a166521545.tar.gz crawl-ref-a74c2dce62189782375ceb7d818282a166521545.zip |
Fix a wrong error message.
It'd display a bogus strerror() value instead.
Or rather, it's guaranteed to die horribly since end() needs quite a bit of
memory.
Diffstat (limited to 'crawl-ref/source/util/levcomp.lpp')
-rw-r--r-- | crawl-ref/source/util/levcomp.lpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/util/levcomp.lpp b/crawl-ref/source/util/levcomp.lpp index 2985edebe7..773099cec3 100644 --- a/crawl-ref/source/util/levcomp.lpp +++ b/crawl-ref/source/util/levcomp.lpp @@ -115,7 +115,7 @@ static void cattext(bool trim_right = false, int strip_trailing = 0) bool was_alloced = alloced; char *newbuf = (char*) malloc(strlen(yylval.text) + strlen(yytext) + 1); if (!newbuf) - end(1, "Out of memory"); + end(1, false, "Out of memory"); alloced = true; strcpy(newbuf, yylval.text); strcat(newbuf, yytext); |