Fix off-by-ones in mbAppend() and mbAppendStr()
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 10 May 2012 08:28:39 +0000 (11:28 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 10 May 2012 08:28:39 +0000 (11:28 +0300)
commit6101cac6b3357fab763636da53d52ea9810cb54f
tree93433999cd959d1750e04bbde68d945e53719db4
parent416fc709ab1a711ae441271154f72b1b5d9401cb
Fix off-by-ones in mbAppend() and mbAppendStr()

- Oops, remember to reserve space for the trailing \0 when appending.
  mb->nb holds the number of actual characters left in the buffer,
  not the terminator. Fixes a regression introduced in rpm 4.9.x
  dynamic macro realloction work (RhBug:431009 reprise)
rpmio/macro.c