summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
 }