Commit b223590e authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

Merge branch...

Merge branch 'float-1503-render-config-reader-msvc-fix-from-705-causes-issues-on-other-platforms' into 'main'

Resolve "Render config reader MSVC fix from #705 causes issues on other platforms"

See merge request !2488
parents e57b93b9 1ad7d1f4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1988,7 +1988,9 @@ ivas_error RenderConfigReader_read(
    pTemp = (char *) calloc( file_size + 1, sizeof( char ) );
    acIdx = 0;
    roomAcHasFgCount = roomAcHasAcEnvCount = FALSE;
#ifdef _MSC_VER
    setvbuf( pRenderConfigReader->pConfigFile, pConfig_str, _IONBF, sizeof( char ) ); /* Work-around for VS bug that gives incorrect ftell for UNIX-style line endings */
#endif

    /* read file line by line */
    while ( fgets( pConfig_str, file_size, pRenderConfigReader->pConfigFile ) != NULL )