summary refs log tree commit diff
path: root/util.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2023-03-19 07:38:24 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2023-03-19 07:38:24 +0100
commiteb9fcece9e622712a60ad306ae83f4ac4a2a3571 (patch)
tree6d03dc447a532d70f3afa8bb59957f87bed3d577 /util.c
parent011dfc839d40c735fb63474aa6d5e1412b823a3b (diff)
downloadroux-eb9fcece9e622712a60ad306ae83f4ac4a2a3571.tar.gz
naming nit
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
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;