* ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was

longer than 3 characters
This commit is contained in:
Alexandre Oliva 1999-02-03 07:55:40 +00:00 committed by Alexandre Oliva
parent 176e4be3c5
commit b579b04417
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
1999-02-03 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was
longer than 3 characters
1999-01-28 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* ltmain.in: Reverted this change of Alexandre's from the

View File

@ -1245,8 +1245,9 @@ lt_dlopenext (filename)
last_error = memory_error;
return 0;
}
}
tmp[len] = '\0';
strcpy(tmp, filename);
} else
tmp[len] = '\0';
strcat(tmp, shlib_ext);
handle = lt_dlopen(tmp);
if (handle) {