Skip to content

Commit e101f2b

Browse files
committed
orte/util: fix vpids parsing in orte_util_nidmap_parse()
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent ee4ce13 commit e101f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orte/util/nidmap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2012-2014 Los Alamos National Security, LLC.
1414
* All rights reserved.
1515
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
16-
* Copyright (c) 2014 Research Organization for Information Science
16+
* Copyright (c) 2014-2017 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -756,8 +756,8 @@ int orte_util_nidmap_parse(char *regex)
756756
opal_list_append(&dids, &rng->super);
757757
/* check for a count */
758758
if (NULL != (ptr = strchr(dvpids[n], '('))) {
759+
dvpids[n][strlen(dvpids[n])-1] = '\0'; // remove trailing paren
759760
*ptr = '\0';
760-
dvpids[n][strlen(dvpids[n])-2] = '\0'; // remove trailing paren
761761
++ptr;
762762
rng->cnt = strtoul(ptr, NULL, 10);
763763
}

0 commit comments

Comments
 (0)