am c9ff3714: am 596e9c63: Merge "fix valgrind ioctl warning."

* commit 'c9ff37144a7943ee1bc247cef3620c8cce22049d':
  fix valgrind ioctl warning.
This commit is contained in:
Colin Cross 2013-09-05 12:57:15 -07:00 committed by Android Git Automerger
commit 8da6e9c717
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ int ashmem_create_region(const char *name, size_t size)
return fd;
if (name) {
char buf[ASHMEM_NAME_LEN];
char buf[ASHMEM_NAME_LEN] = {0};
strlcpy(buf, name, sizeof(buf));
ret = ioctl(fd, ASHMEM_SET_NAME, buf);