Pass length to PathCharString.Append on SunOS (#40928)
authorAdeel Mujahid <adeelbm@outlook.com>
Mon, 17 Aug 2020 21:10:39 +0000 (00:10 +0300)
committerGitHub <noreply@github.com>
Mon, 17 Aug 2020 21:10:39 +0000 (23:10 +0200)
src/coreclr/src/pal/src/init/pal.cpp

index fc3d7a6..b71c537 100644 (file)
@@ -1376,7 +1376,7 @@ bool GetEntrypointExecutableAbsolutePath(PathCharString& entrypointExecutable)
         {
             entrypointExecutable.Set(cwd, strlen(cwd));
             entrypointExecutable.Append('/');
-            entrypointExecutable.Append(path);
+            entrypointExecutable.Append(path, strlen(path));
 
             result = true;
             free(cwd);