forked from epics_driver_modules/require
fix non-osi path
This commit is contained in:
@@ -611,7 +611,7 @@ void registerModule(const char* module, const char* version, const char* locatio
|
||||
/* create a record with the version string */
|
||||
mylocation = getenv("require_DIR");
|
||||
if (mylocation == NULL) return;
|
||||
if (asprintf(&abslocation, "%s/db/moduleversion.template", mylocation) < 0) return;
|
||||
if (asprintf(&abslocation, "%s" OSI_PATH_SEPARATOR "db" OSI_PATH_SEPARATOR "moduleversion.template", mylocation) < 0) return;
|
||||
if (asprintf(&argstring, "IOC=%.30s, MODULE=%.24s, VERSION=%.39s, MODULE_COUNT=%lu, BUFFER_SIZE=%lu",
|
||||
getenv("IOC"), module, version, moduleCount,
|
||||
moduleListBufferSize+maxModuleNameLength*moduleCount) < 0) return;
|
||||
|
||||
Reference in New Issue
Block a user