options: redirects: Fix possible buffer overflows
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 19 Dec 2018 09:34:08 +0000 (10:34 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 20 Dec 2018 15:10:03 +0000 (16:10 +0100)
commit6ba9105f880db5b69386fc6258e41641147fd313
tree447693be1f599edc6cf38d351dbca6e104058109
parent14589c80cde937162da02414a0103653a566e866
options: redirects: Fix possible buffer overflows

This fixes two possible situations where strncpy() produces a not null
terminated buffer.

Coverity IDs:
1412247 Buffer not null terminated
1412279 Buffer not null terminated

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Jo-Philipp Wich <jo@mein.io>
options.c
redirects.c