diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-07 12:51:57 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-07 12:51:57 -0500 |
commit | 4c855e3e125ff8bdf64b1970460e0d9fc2db52c1 (patch) | |
tree | 251435875a0a47fd766b668f38275b2c529a10c5 | |
parent | 26151e918a28c01d6183bf87fe682124e33b77cc (diff) | |
download | roux-4c855e3e125ff8bdf64b1970460e0d9fc2db52c1.tar.gz |
cosmetics in err()
-rw-r--r-- | lisc/parse.c | 3 |
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); } |