util: rework strappenda(), and rename it strjoina()
After all it is now much more like strjoin() than strappend(). At the same time, add support for NULL sentinels, even if they are normally not necessary.
This commit is contained in:
@@ -183,7 +183,7 @@ static int create_disk(
|
||||
if (ferror(f))
|
||||
return log_error_errno(errno, "Failed to write file %s: %m", p);
|
||||
|
||||
from = strappenda("../", n);
|
||||
from = strjoina("../", n);
|
||||
|
||||
if (!noauto) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user