summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lisc/parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisc/parse.c b/lisc/parse.c
index 113ea9f..d3ce1e4 100644
--- 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);
 }