]> git.proxmox.com Git - libgit2.git/commit
remote: don't write too much when dealing with multivars
authorCarlos Martín Nieto <cmn@dwim.me>
Sat, 2 Nov 2013 17:36:34 +0000 (18:36 +0100)
committerCarlos Martín Nieto <cmn@dwim.me>
Sat, 2 Nov 2013 17:54:55 +0000 (18:54 +0100)
commita7a64d2cadade53175ba27c1a29023278bdc4288
tree8023e83e9cb0d12416f6dfdc5abadc9aa01e7fe4
parent187009e253efa54f6db690a16504adf7f2c32d17
remote: don't write too much when dealing with multivars

We used to move `data_start` forward, which is wrong as that needs to
point to the beginning of the buffer in order to perform size
calculations.

Introduce a `write_start` variable which indicates where we should start
writing from, which is what the `data_start` was being wrongly reused to
be.
src/config_file.c