From: fennecdjay Date: Tue, 10 Sep 2019 20:49:11 +0000 (+0200) Subject: :bug: Fix StringPlus X-Git-Tag: nightly~2220 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=32352225b967d81dc8072ff7858a026bf02d4514;p=gwion.git :bug: Fix StringPlus --- 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,,