diff options
author | 2015-11-07 18:07:44 +0000 | |
---|---|---|
committer | 2015-11-07 18:07:44 +0000 | |
commit | 09370fe947a2a1c0c4f5d012248648ac15609fb8 (patch) | |
tree | 3f60ac041a9610203a080fdeb00c5156eaca7f11 /usr.bin/less/lsystem.c | |
parent | delete custom charset tables and just use ctype. init utf_mode from LC_CTYPE (diff) | |
download | wireguard-openbsd-09370fe947a2a1c0c4f5d012248648ac15609fb8.tar.xz wireguard-openbsd-09370fe947a2a1c0c4f5d012248648ac15609fb8.zip |
replace save() with estrdup() and make estrdup() exit like all the other
ecalloc, etc. functions do.
ok mmcc nicm
Diffstat (limited to 'usr.bin/less/lsystem.c')
-rw-r--r-- | usr.bin/less/lsystem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/less/lsystem.c b/usr.bin/less/lsystem.c index 13cd47ac067..6e19fb7eee1 100644 --- a/usr.bin/less/lsystem.c +++ b/usr.bin/less/lsystem.c @@ -85,7 +85,7 @@ lsystem(const char *cmd, const char *donemsg) p = NULL; if ((shell = lgetenv("SHELL")) != NULL && *shell != '\0') { if (*cmd == '\0') { - p = save(shell); + p = estrdup(shell); } else { char *esccmd = shell_quote(cmd); if (esccmd != NULL) { @@ -96,9 +96,9 @@ lsystem(const char *cmd, const char *donemsg) } if (p == NULL) { if (*cmd == '\0') - p = save("sh"); + p = estrdup("sh"); else - p = save(cmd); + p = estrdup(cmd); } (void) system(p); free(p); |