chiark / gitweb /
Add a snprinf wrapper which checks that the buffer was big enough
[elogind.git] / src / shared / switch-root.c
index ca3875628aa2be32d6b9a8a4e906cdf66a05893b..e8cedc69cc023f0a4dc41ade35932ba9dbb295ba 100644 (file)
@@ -72,7 +72,6 @@ int switch_root(const char *new_root, const char *oldroot, bool detach_oldroot,
                 struct stat sb;
 
                 snprintf(new_mount, sizeof(new_mount), "%s%s", new_root, i);
-                char_array_0(new_mount);
 
                 mkdir_p_label(new_mount, 0755);