Skip to content
Commit ba758cfc authored by Wen Yang's avatar Wen Yang Committed by Richard Weinberger
Browse files

um: Fix len of file in create_pid_file



sizeof gives us the size of the pointer variable, not of the
area it points to. So the number of bytes copied by umid_file_name()
is 8.
We should pass in the correct length of the file buffer.

Signed-off-by: default avatarWen Yang <wenyang@linux.alibaba.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 7d7c0568
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment