Skip to content

Commit 9a4f8a5

Browse files
committed
Solve bug in string for mock loader.
1 parent b60e6ee commit 9a4f8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/loaders/mock_loader/source/mock_loader_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function_return function_mock_interface_invoke(function func, function_impl impl
191191
{
192192
static const char str[] = "Hello World";
193193

194-
return value_create_string(str, sizeof(str) / sizeof(str[0]));
194+
return value_create_string(str, sizeof(str) - 1);
195195
}
196196
else if (id == TYPE_PTR)
197197
{

0 commit comments

Comments
 (0)