chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a snprinf wrapper which checks that the buffer was big enough
[elogind.git]
/
src
/
shared
/
switch-root.c
diff --git
a/src/shared/switch-root.c
b/src/shared/switch-root.c
index ca3875628aa2be32d6b9a8a4e906cdf66a05893b..e8cedc69cc023f0a4dc41ade35932ba9dbb295ba 100644
(file)
--- a/
src/shared/switch-root.c
+++ b/
src/shared/switch-root.c
@@
-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);