about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2000-09-17 04:28:50 +0000
committerClint Adams <clint@users.sourceforge.net>2000-09-17 04:28:50 +0000
commitabd9b6d820822389ff3d5aedd01e76e159eab226 (patch)
tree4ee143204b2ba6f55e6aee871355072996db5628
parent2742cb14ce02354f6c9a2a2a61f793f9a1932924 (diff)
downloadzsh-abd9b6d820822389ff3d5aedd01e76e159eab226.tar.gz
zsh-abd9b6d820822389ff3d5aedd01e76e159eab226.tar.xz
zsh-abd9b6d820822389ff3d5aedd01e76e159eab226.zip
12818: use tricat() in lieu of zasprintf
-rw-r--r--ChangeLog3
-rw-r--r--Src/init.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 102dd5888..65403144d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-09-16  Clint Adams  <schizo@debian.org>
 
+	* 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);
 }