From: Chen Gang Date: Wed, 29 May 2013 10:51:28 +0000 (+0800) Subject: alpha: kernel: using memcpy() instead of strcpy() X-Git-Tag: v3.11-rc3~25^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ee03092a6e4b1d0ddc6b861ebb9ed8d13cc29b;p=pandora-kernel.git alpha: kernel: using memcpy() instead of strcpy() When sending message in send_secondary_console_msg(), the length is not include the NUL byte, and also not copy NUL to 'ipc_buffer'. When receive message in recv_secondary_console_msg(), the 'cnt' also excludes NUL. So when get string from ipc_buffer, it may not be NUL terminated. Then use memcpy() instead of strcpy(), and set last byte NUL. Reviewed-by: Matt Turner Signed-off-by: Matt Turner Signed-off-by: Chen Gang --- Reading git-diff-tree failed