Skip to content

Commit 39c4d86

Browse files
authored
Fix nanoCLR version output (#3155)
***NO_CI****
1 parent 0a94972 commit 39c4d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/netcore/nanoFramework.nanoCLR/nanoCLR_native.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const char *nanoCLR_GetVersion()
182182

183183
const std::string_view str{buffer, result.out};
184184

185-
std::memcpy(pszVersion, buffer, result.size);
185+
std::memcpy(pszVersion, buffer, result.size + 1);
186186
}
187187

188188
return pszVersion;

0 commit comments

Comments
 (0)