summaryrefslogtreecommitdiff
path: root/kicad/sexpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'kicad/sexpr.c')
-rw-r--r--kicad/sexpr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kicad/sexpr.c b/kicad/sexpr.c
index 6f0fd2f..84871b9 100644
--- a/kicad/sexpr.c
+++ b/kicad/sexpr.c
@@ -108,7 +108,7 @@ static void end_string(struct sexpr_ctx *ctx, const char *end)
*t++ = '\t';
continue;
case 0:
- abort();
+ BUG("escaped NUL");
default:
break;
}
@@ -203,7 +203,7 @@ bool sexpr_parse(struct sexpr_ctx *ctx, const char *s)
case failed:
return 0;
default:
- abort();
+ BUG("invalid state %d", ctx->state);
}
s++;
}