diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2025-08-04 22:27:40 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2025-08-04 22:27:40 +0200 |
| commit | 5f3a986c9e67f236d2ae9dec19ce42dbad15b6b8 (patch) | |
| tree | e7139d21a8b57c15af474a4ac6a2b3b7bb9cb79b /libbb | |
| parent | a33ce612b5f51446e9d69ec5f41d5e2e2bcb4a84 (diff) | |
libbb: simplify concat_path_file()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/concat_path_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/concat_path_file.c b/libbb/concat_path_file.c index dec9588ea..aefb84f45 100644 --- a/libbb/concat_path_file.c +++ b/libbb/concat_path_file.c @@ -54,7 +54,7 @@ char* FAST_FUNC concat_path_file(const char *path, const char *filename) p = mempcpy(buf, path, n1); if (n2) *p++ = '/'; - p = mempcpy(p, filename, n3); + memcpy(p, filename, n3); return buf; #endif } @@ -96,7 +96,7 @@ char* FAST_FUNC concat_path_dirent(const char *path, const struct dirent *de) p = mempcpy(buf, path, n1); if (n2) *p++ = '/'; - p = mempcpy(p, de->d_name, n3); + memcpy(p, de->d_name, n3); return buf; } |
