1
1

Don't allocate the temporary buffer on the stack. It get way too much

space.

This commit was SVN r16127.
Этот коммит содержится в:
George Bosilca 2007-09-14 02:09:38 +00:00
родитель 2c8c75ef94
Коммит d1364c53de

Просмотреть файл

@ -303,7 +303,7 @@ char* opal_find_absolute_path( char* app_name )
}
if( NULL != abs_app_name ) {
char resolved_path[PATH_MAX];
char* resolved_path = (char*)malloc(PATH_MAX);
#if !defined(__WINDOWS__)
realpath( abs_app_name, resolved_path );
#else
@ -312,7 +312,7 @@ char* opal_find_absolute_path( char* app_name )
#endif
#endif /* !defined(__WINDOWS__) */
if( abs_app_name != app_name ) free(abs_app_name);
return strdup(resolved_path);
return resolved_path;
}
return NULL;
}