diff options
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c index 2ab82bb..362fa98 100644 --- a/util.c +++ b/util.c @@ -155,12 +155,12 @@ vgrow(void *vp, ulong len) } void -fmt(char *dst, char *s, ...) +strf(char str[NString], char *s, ...) { va_list ap; va_start(ap, s); - vsnprintf(dst, NString, s, ap); + vsnprintf(str, NString, s, ap); va_end(ap); } @@ -344,7 +344,7 @@ newtmp(char *prfx, int k, Fn *fn) vgrow(&fn->tmp, fn->ntmp); memset(&fn->tmp[t], 0, sizeof(Tmp)); if (prfx) - sprintf(fn->tmp[t].name, "%s.%d", prfx, ++n); + strf(fn->tmp[t].name, "%s.%d", prfx, ++n); fn->tmp[t].cls = k; fn->tmp[t].slot = -1; fn->tmp[t].nuse = +1; |