summaryrefslogtreecommitdiff
path: root/kicad/sch-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'kicad/sch-parse.c')
-rw-r--r--kicad/sch-parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kicad/sch-parse.c b/kicad/sch-parse.c
index 9cc3bbd..456ad13 100644
--- a/kicad/sch-parse.c
+++ b/kicad/sch-parse.c
@@ -149,9 +149,7 @@ static bool parse_field(struct sch_ctx *ctx, const char *line)
if (n == 0 && comp->comp && comp->comp->units > 1) {
len = strlen(txt->s);
- s = realloc((void *) txt->s, len + 3);
- if (!s)
- diag_pfatal("realloc");
+ s = realloc_size((void *) txt->s, len + 3);
if (comp->unit <= 26)
sprintf(s + len, "%c", 'A' + comp->unit - 1);
else