Commit 71c85541 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

utils/evl: fix UMR


Signed-off-by: default avatarPhilippe Gerum <rpm@xenomai.org>
parent 1377720f
......@@ -22,7 +22,7 @@ static char *find_install_dir(const char *arg0, const char *subdir)
char *exepath, *bindir, *ipath;
int ret;
exepath = malloc(PATH_MAX);
exepath = malloc(PATH_MAX + 1);
if (exepath == NULL)
error(1, ENOMEM, "malloc");
......@@ -30,6 +30,7 @@ static char *find_install_dir(const char *arg0, const char *subdir)
if (ret < 0)
error(1, errno, "readlink");
exepath[ret] = '\0';
bindir = dirname(exepath);
ret = asprintf(&ipath, "%s/%s", dirname(bindir), subdir);
if (ret < 0)
......
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