From e157fe9c51eb9ef242bf33dd8ebdb24848657cec Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 2 Sep 2025 21:08:09 +0100 Subject: fix i time scalar string --- src/opcodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/opcodes.cpp b/src/opcodes.cpp index e82ce33..1a6a333 100644 --- a/src/opcodes.cpp +++ b/src/opcodes.cpp @@ -495,7 +495,7 @@ struct dbscalarstr : csnd::Plugin<1, 4> { } resultString = connection->ScalarString(sql.data, csound, inargs[2], inargs[3]); result.size = strlen(resultString) + 1; - result.data = resultString; + result.data = csound->strdup(resultString); } catch (const std::exception &e) { UNLOCK(connection); return csound->init_error(e.what()); -- cgit v1.2.3