summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnbld.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-12-18 23:35:22 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-12-19 18:34:30 +0100
commitf209afdf549a28fb8becfeef3b4d01fbc628d03a (patch)
treeca768c0785efd3315716393483c1684b58b6c224 /crawl-ref/source/l_dgnbld.cc
parent615b653c8ed164fd6de7ed3f31c44e8683a07101 (diff)
downloadcrawl-ref-f209afdf549a28fb8becfeef3b4d01fbc628d03a.tar.gz
crawl-ref-f209afdf549a28fb8becfeef3b4d01fbc628d03a.zip
Don't pass '\0' as char*.
It will get promoted to a null pointer, yeah, but promoting a char this way is suspicious enough that you can get a warning.
Diffstat (limited to 'crawl-ref/source/l_dgnbld.cc')
-rw-r--r--crawl-ref/source/l_dgnbld.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_dgnbld.cc b/crawl-ref/source/l_dgnbld.cc
index a9f5d72e45..e0a415094d 100644
--- a/crawl-ref/source/l_dgnbld.cc
+++ b/crawl-ref/source/l_dgnbld.cc
@@ -698,7 +698,7 @@ LUAFN(dgn_replace_area)
{
LINES(ls, 1, lines);
- TABLE_STR(ls, find, '\0');
+ TABLE_STR(ls, find, 0);
TABLE_CHAR(ls, replace, '\0');
int x1, y1, x2, y2;