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:
parent
2742cb14ce
commit
abd9b6d820
2 changed files with 4 additions and 1 deletions
|
|
@ -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().
|
||||
|
|
|
|||
|
|
@ -1033,7 +1033,7 @@ sourcehome(char *s)
|
|||
return;
|
||||
}
|
||||
#endif
|
||||
zasprintf(&buf, "%s/%s", h, s);
|
||||
buf = tricat(h, "/", s);
|
||||
source(buf);
|
||||
zsfree(buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue