1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-06 09:41:07 +01:00

12818: use tricat() in lieu of zasprintf

This commit is contained in:
Clint Adams 2000-09-17 04:28:50 +00:00
parent 2742cb14ce
commit abd9b6d820
2 changed files with 4 additions and 1 deletions

View file

@ -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().

View file

@ -1033,7 +1033,7 @@ sourcehome(char *s)
return;
}
#endif
zasprintf(&buf, "%s/%s", h, s);
buf = tricat(h, "/", s);
source(buf);
zsfree(buf);
}