create_rsync_argv(): Allocate correctly sized arg array.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 3 Sep 2019 09:09:14 +0000 (11:09 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 3 Sep 2019 09:09:14 +0000 (11:09 +0200)
commitdd3f58c0bdf1e9f7bb86d09e6f7faf155d6b5310
tree33e57628e15a9b051a3d9736fffea7ae799c82bd
parent4b93d353a2ac15b45b9e6064620bf93e41aa1b51
create_rsync_argv(): Allocate correctly sized arg array.

In the calculation of the length of the argv array we did not take
into account that --source-dir may be given multiple times. This can
result in an invalid write at the end of the allocated space.
dss.c