escape: use strextend()

This commit is contained in:
Yu Watanabe
2021-05-20 18:18:56 +09:00
parent a2a7b77260
commit f8abe13f32
+1 -6
View File
@@ -188,13 +188,8 @@ static int run(int argc, char *argv[]) {
free_and_replace(e, x);
} else if (arg_suffix) {
char *x;
x = strjoin(e, ".", arg_suffix);
if (!x)
if (!strextend(&e, ".", arg_suffix))
return log_oom();
free_and_replace(e, x);
}
break;