Skip to content

Commit c2608fb

Browse files
authored
Merge pull request #5939 from jsquyres/pr/coverity-cid-1440332
opal/os_path: fix minor string overrun
2 parents a435bfe + 290d1c0 commit c2608fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/util/os_path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ char *opal_os_path(int relative, ...)
5959
if (relative) {
6060
path[0] = '.';
6161
}
62-
strncat(path, path_sep, len);
62+
strncat(path, path_sep, len - 1);
6363
return(path);
6464
}
6565

0 commit comments

Comments
 (0)