summaryrefslogtreecommitdiff
path: root/usr.bin/less/ifile.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-11-07 18:07:45 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-11-07 18:07:45 +0000
commitf1dd1d762ffde115bfddd348133de0608a61c4f2 (patch)
tree2c7cbfb7e414a0c2ec6216b0e1bce4b76eeab1d3 /usr.bin/less/ifile.c
parent4f58b634f741e84de358032badb438c41ffdb1ed (diff)
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/ifile.c')
-rw-r--r--usr.bin/less/ifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/ifile.c b/usr.bin/less/ifile.c
index b93a94de502..0675047df0f 100644
--- a/usr.bin/less/ifile.c
+++ b/usr.bin/less/ifile.c
@@ -107,7 +107,7 @@ new_ifile(char *filename, struct ifile *prev)
* Allocate and initialize structure.
*/
p = ecalloc(1, sizeof (struct ifile));
- p->h_filename = save(filename);
+ p->h_filename = estrdup(filename);
p->h_scrpos.pos = -1;
p->h_opened = 0;
p->h_hold = 0;