]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
options: Fix allocating the script option
authorRoy Marples <roy@marples.name>
Fri, 20 Dec 2019 22:05:59 +0000 (22:05 +0000)
committerRoy Marples <roy@marples.name>
Fri, 20 Dec 2019 22:05:59 +0000 (22:05 +0000)
commitf4793642b461282c49ecf9ad8311f79bc9b4f70c
treec7527fd727db2f485cd850dd087bf44309f12162
parent8a24073ed0fac6adaea0837aef428fd35a175c43
options: Fix allocating the script option

When passing PARSE_STRING_NULL we expect to store the string
NULL terminated. As such, allocate space for it an ensure we have
space for it.
src/if-options.c