Commit 33b6de4b authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am d55d8dac: Merge "prevent ioctl_init() to write outside buffer"

* commit 'd55d8dac':
  prevent ioctl_init() to write outside buffer
parents d773fc11 d55d8dac
......@@ -333,7 +333,7 @@ static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, u
io->version[2] = 0;
io->flags = flags;
if (name) {
strncpy(io->name, name, sizeof(io->name));
strlcpy(io->name, name, sizeof(io->name));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment