Skip to content

Commit 290d1c0

Browse files
committed
opal/os_path: fix minor string overrun
This is a follow on to 54ca331 to fix a minor bug identified by Coverity. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent 1c00131 commit 290d1c0

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)