+1999-01-25 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * libltdl/ltdl.c (objdir): string collation isn't portable; strcat
+ "/" explicitly. Or should this be moved to configure.in?
+
1999-01-25 Thomas Tanner <tanner@gmx.de>
* libltdl/ltdl.c: allocate the variables in lt_dlopen() dynamically
/* This accounts for the _LTX_ separator */
#define LTDL_SYMBOL_OVERHEAD 5
-static const char *objdir = LTDL_OBJDIR "/";
+static const char *objdir = LTDL_OBJDIR;
static const char *shlib_ext = LTDL_SHLIB_EXT;
static const char *unknown_error = "unknown error";
}
/* try to open the not-installed module */
if (!installed &&
- strlen(dir)+strlen(objdir)+strlen(dlname)
+ strlen(dir)+strlen(objdir)+1+strlen(dlname)
< LTDL_FILENAME_MAX) {
strcpy(filename, dir);
strcat(filename, objdir);
+ strcat(filename, "/");
strcat(filename, dlname);
if (tryall_dlopen(handle, filename) == 0)
return 0;