Commit 7e4135b3 authored by Jean-Marc Dressler's avatar Jean-Marc Dressler

Correction d'un buffer overflow qui cr�ait des plantages al�atoires sous BeOS.

parent 001a2a10
...@@ -153,7 +153,7 @@ char * TestPlugin ( plugin_id_t *p_plugin_id, char * psz_name ) ...@@ -153,7 +153,7 @@ char * TestPlugin ( plugin_id_t *p_plugin_id, char * psz_name )
psz_program_path = beos_GetProgramPath(); psz_program_path = beos_GetProgramPath();
psz_plugin = malloc( strlen(psz_plugin_path[i_count]) + psz_plugin = malloc( strlen(psz_plugin_path[i_count]) +
strlen(psz_program_path) + i_length + 5 ); strlen(psz_program_path) + i_length + 6 );
sprintf( psz_plugin, "%s/%s/%s.so", psz_program_path, sprintf( psz_plugin, "%s/%s/%s.so", psz_program_path,
psz_plugin_path[i_count], psz_name ); psz_plugin_path[i_count], psz_name );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment