]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Fix off-by-one in spaces
authorPetr Machata <pmachata@redhat.com>
Fri, 1 Oct 2010 14:19:00 +0000 (16:19 +0200)
committerPetr Machata <pmachata@redhat.com>
Fri, 1 Oct 2010 14:19:00 +0000 (16:19 +0200)
dwarflint/wrap.cc

index a0da874e3e4815927d49a22fbcefbd7153d9f3b2..e4b3f8ab5127e1cbd4eb69d94b6ae1ef0d208b46 100644 (file)
@@ -153,7 +153,7 @@ namespace
       , _m_endp (_m_buf + Max - 1)
     {
       std::memset (_m_buf, ' ', Max - 1);
-      _m_buf[Max] = 0;
+      _m_buf[Max - 1] = 0;
     }
     ~spc ()
     {