commit 4c855e3e125ff8bdf64b1970460e0d9fc2db52c1
parent 26151e918a28c01d6183bf87fe682124e33b77cc
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Mon, 7 Mar 2016 12:51:57 -0500
cosmetics in err()
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lisc/parse.c b/lisc/parse.c
@@ -337,8 +337,7 @@ expect(int t)
return;
s1 = ttoa[t] ? ttoa[t] : "??";
s2 = ttoa[t1] ? ttoa[t1] : "??";
- snprintf(buf, sizeof buf,
- "%s expected (got %s instead)", s1, s2);
+ sprintf(buf, "%s expected, got %s instead", s1, s2);
err(buf);
}