From 32352225b967d81dc8072ff7858a026bf02d4514 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 10 Sep 2019 22:49:11 +0200 Subject: [PATCH] :bug: Fix StringPlus --- src/lib/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/string.c b/src/lib/string.c index dd66025a..fbf31cf0 100644 --- a/src/lib/string.c +++ b/src/lib/string.c @@ -145,7 +145,7 @@ static INSTR(name##String_Plus) {\ push_string(shred, rhs, c); \ } describe_string_plus(,SZ_INT, M_Object, release(lhs, shred), - strlen(STRING(rhs)), "%s", lhs ? STRING(lhs) : "") + lhs ? strlen(STRING(lhs)) : 0, "%s", lhs ? STRING(lhs) : "") describe_string_plus(Int_, SZ_INT, m_int,, num_digit((m_uint)lhs), "%"INT_F, lhs) describe_string_plus(Float_, SZ_FLOAT, m_float,, -- 2.43.0