summary refs log tree commit diff
path: root/util.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-13 09:50:52 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-13 09:53:54 -0400
commit95f1a20e0e9569a892ca4dec6573241dc643a1d2 (patch)
tree5766cc45858564fe9b568605fd7fbc4307dd4afe /util.c
parent32d9e33191a08e9162cebfac6e19cbd56eb1b3b6 (diff)
downloadroux-95f1a20e0e9569a892ca4dec6573241dc643a1d2.tar.gz
separate name and index in newtmp()
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index ee8030f..dbba264 100644
--- a/util.c
+++ b/util.c
@@ -215,7 +215,7 @@ newtmp(char *prfx, int k,  Fn *fn)
 	t = fn->ntmp++;
 	vgrow(&fn->tmp, fn->ntmp);
 	if (prfx)
-		sprintf(fn->tmp[t].name, "%s%d", prfx, ++n);
+		sprintf(fn->tmp[t].name, "%s.%d", prfx, ++n);
 	fn->tmp[t].cls = k;
 	fn->tmp[t].slot = -1;
 	fn->tmp[t].nuse = +1;