summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-30 16:12:51 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-30 16:12:51 -0500
commit839dca331a339d8beec727a6ffd0740ad4f5e13a (patch)
tree49c0e242e6b05ea9f20d254b5bf5ef42f8ca800f
parent67db7b6578b855d8ee7e6c5ba67a3dd7020fd17e (diff)
downloadroux-839dca331a339d8beec727a6ffd0740ad4f5e13a.tar.gz
more error reporting in parsedat()
-rw-r--r--lisc/parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisc/parse.c b/lisc/parse.c
index 8cba8db..e858365 100644
--- a/lisc/parse.c
+++ b/lisc/parse.c
@@ -763,6 +763,7 @@ parsedat(void cb(Dat *))
 			err("data contents must be { .. } or \" .. \"");
 		for (;;) {
 			switch (nextnl()) {
+			default: err("invalid size specifier in data");
 			case TL: d.type = DL; break;
 			case TW: d.type = DW; break;
 			case TH: d.type = DH; break;