Merge "prevent ioctl_init() to write outside buffer"
diff --git a/cryptfs.c b/cryptfs.c
index dee6bac..91879e3 100644
--- a/cryptfs.c
+++ b/cryptfs.c
@@ -327,7 +327,7 @@
     io->version[2] = 0;
     io->flags = flags;
     if (name) {
-        strncpy(io->name, name, sizeof(io->name));
+        strlcpy(io->name, name, sizeof(io->name));
     }
 }