mirror of
https://github.com/linux-msm/diag.git
synced 2026-10-06 21:31:30 -07:00
strncpy() stops at the first null byte, which truncates the abstract socket name "\0diag" to an empty string. This will result in a "Diag response: Bad command" failure, fix this by using memcpy to copy the full 5 bytes including the leading null that marks the abstract namespace. Signed-off-by: Sibi Sankar <sibi.sankar@oss.qualcomm.com>