Skip to content

Commit d428b67

Browse files
committed
Test fix for missing Linux libs #3
1 parent 3118570 commit d428b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MTA10_Server/launcher/Main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ void HandleLinuxLibs( const SString& strLaunchDirectory, int argc, char* argv []
234234
if ( !strLdLibraryPath.empty() )
235235
strLdLibraryPath += ";";
236236
strLdLibraryPath += strLinuxLibsPath;
237-
putenv( (char*)*( SStringX( "LD_LIBRARY_PATH=" ) + strLdLibraryPath ) );
237+
SString strEnvString = SStringX( "LD_LIBRARY_PATH=" ) + strLdLibraryPath;
238+
putenv( (char*)*strEnvString );
238239

239240
// Add -q to ensure linux-libs don't get added again
240241
char** pArgArray = new char*[argc + 2];

0 commit comments

Comments
 (0)