From abd9b6d820822389ff3d5aedd01e76e159eab226 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 17 Sep 2000 04:28:50 +0000 Subject: 12818: use tricat() in lieu of zasprintf --- ChangeLog | 3 +++ Src/init.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 102dd5888..65403144d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-09-16 Clint Adams + * 12818: Src/init.c: call tricat() instead of zasprintf() + as inspired by Bart. + * 12814: configure.in, Src/compat.c, Src/init.c, Src/system.h: implement zasprintf and use it in lieu of sprintf with a static buffer in sourcehome(). diff --git a/Src/init.c b/Src/init.c index 0c82e47ef..02749cc0a 100644 --- a/Src/init.c +++ b/Src/init.c @@ -1033,7 +1033,7 @@ sourcehome(char *s) return; } #endif - zasprintf(&buf, "%s/%s", h, s); + buf = tricat(h, "/", s); source(buf); zsfree(buf); } -- cgit 1.4.1