diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2024-08-03 09:42:37 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2024-08-03 09:42:37 +0000 |
| commit | b27841e1b590f91c9de21bb694909211421e5f96 (patch) | |
| tree | 6f0f5a1fec321ae8c96e1bc019cc625d50b35012 /slave.c | |
| parent | osc: kitty notifications: ignore invalid IDs (diff) | |
| parent | xmalloc: remove delim param from xstrjoin() and add separate xstrjoin3() (diff) | |
Merge branch 'xstrjoin3'
Diffstat (limited to 'slave.c')
| -rw-r--r-- | slave.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -55,7 +55,7 @@ find_file_in_path(const char *file) path != NULL; path = strtok(NULL, ":")) { - char *full = xasprintf("%s/%s", path, file); + char *full = xstrjoin3(path, "/", file); if (access(full, F_OK) == 0) { free(path_list); return full; @@ -329,7 +329,7 @@ add_to_env(struct environ *env, const char *name, const char *value) if (env->envp == NULL) setenv(name, value, 1); else { - char *e = xasprintf("%s=%s", name, value); + char *e = xstrjoin3(name, "=", value); /* Search for existing variable. If found, replace it with the new value */ |
