From d8cef3308f304e72bfb0472f482737cc31e3ecc7 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 1 Aug 2016 01:23:57 -0300 Subject: [PATCH] sch2fig/sch-parse.c (parse_field): write back realloc'ed pointer --- sch2fig/sch-parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sch2fig/sch-parse.c b/sch2fig/sch-parse.c index 5b2fefa..9fde59f 100644 --- a/sch2fig/sch-parse.c +++ b/sch2fig/sch-parse.c @@ -134,6 +134,7 @@ static bool parse_field(struct sch_ctx *ctx, const char *line) sprintf(s + len, "%c%c", 'A' + (comp->unit - 1) / 26 - 1, 'A' + (comp->unit - 1) % 26); + txt->s = s; } field->next = comp->fields;