summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-13 18:05:30 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-13 18:05:30 +0000
commite788bbaa89ad9aa5a0cd56b5a705996c040b0090 (patch)
treeeddc7fbce7815d4edf8e6dcff43f7a1c1b9e268c /crawl-ref/source/cio.cc
parent7f8610e3e3c52cdcc3b2c4ee7b4c213534ab6310 (diff)
downloadcrawl-ref-e788bbaa89ad9aa5a0cd56b5a705996c040b0090.tar.gz
crawl-ref-e788bbaa89ad9aa5a0cd56b5a705996c040b0090.zip
Silenced some valgrind warning noises.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1997 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r--crawl-ref/source/cio.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc
index 91f1ddd295..df1b10a4de 100644
--- a/crawl-ref/source/cio.cc
+++ b/crawl-ref/source/cio.cc
@@ -364,6 +364,7 @@ void line_reader::backspace()
{
if (pos)
{
+ buffer[length] = 0;
--cur;
char *c = cur;
while (*c)