procd: initd: fix path allocation in early_insmod
authorNathan Hintz <nlhintz@hotmail.com>
Fri, 29 Dec 2017 04:48:26 +0000 (04:48 +0000)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 4 Jan 2018 10:15:58 +0000 (11:15 +0100)
commit9085551922c2000e15b5a7ada8154fbfe17c70af
treeb3822a273ed6c757b50382440d7048c67246f3bc
parentd9dc0e03d70937dbbea12af86997701fbd717dc5
procd: initd: fix path allocation in early_insmod

Noticed that /tmp was not being created on /dev/zram0.  This was on
ixp4xx (nslu2) using GCC 6.3 and musl.

The allocation should be using the length of the passed string
(module path), not the size of the pointer to the string.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
initd/zram.c