From 3f99c2de245e950b8004fde023e45a0dd6389381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 12 Mar 2021 16:46:04 +0100 Subject: [PATCH] Process: do not access RichString internals Use wrapper macro to encapsulate the RichString structure --- Process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Process.c b/Process.c index d80ad796..acb7a768 100644 --- a/Process.c +++ b/Process.c @@ -426,7 +426,7 @@ void Process_display(const Object* cast, RichString* out) { } } - assert(out->chlen > 0); + assert(RichString_size(out) > 0); } void Process_done(Process* this) {