Whoops, fix typo/thinko from commit dc258bac41e32e754b15a413d844160f34b6a12e
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 27 Sep 2010 13:22:38 +0000 (16:22 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 27 Sep 2010 13:22:38 +0000 (16:22 +0300)
rpmio/macro.c

index d460771..658bbf6 100644 (file)
@@ -1242,7 +1242,7 @@ expandMacro(MacroBuf mb, const char *src)
                    size_t len = strlen(printbuf);
                    if (len > mb->nb)
                        len = mb->nb;
-                   memcpy(mb->buf+tpos, printbuf, len);
+                   memcpy(mb->buf+mb->tpos, printbuf, len);
                    mb->tpos += len;
                    mb->nb -= len;
                }