← Commit list

5f3a986c9

Denys Vlasenko
Denys Vlasenko
2025-08-04
SUCCESS Duration: 155s

Subject

libbb: simplify concat_path_file()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/concat_path_file.c+2 -2
@@ -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;
}