diff options
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 16f831bc26..12fb5f50f0 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -2756,7 +2756,7 @@ static int mkdir_parents_rm_if_wrong_type(mode_t child_mode, const char *path) { e = s + strcspn(s, "/"); /* Copy the path component to t so it can be a null terminated string. */ - *((char*) mempcpy(t, s, e - s)) = 0; + *mempcpy_typesafe(t, s, e - s) = 0; /* Is this the last component? If so, then check the type */ if (*e == 0) |