File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments