procd: initd: fix path allocation in early_insmod
authorNathan Hintz <nlhintz@hotmail.com>
Fri, 29 Dec 2017 04:48:26 +0000 (04:48 +0000)
committerJohn Crispin <john@phrozen.org>
Fri, 29 Dec 2017 23:12:16 +0000 (00:12 +0100)
commit7aad9409d22dc38b71ec75d2aafcfa32426b5594
tree4bdbbb8d1979a768f8c30ecb71099a85d11b5bb4
parent006c19c45464648a356e200f8ef011b021b9ff6f
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