Skip to content

Commit e247acc

Browse files
authored
Merge pull request #5035 from jsquyres/pr/v2.x/jobstepid-parsing-fix
v2.x: jobstepid parsing fix
2 parents b45f1ad + 395e99c commit e247acc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

opal/mca/pmix/s1/pmix_s1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
3+
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
44
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* $COPYRIGHT$
@@ -214,7 +214,7 @@ static int s1_init(void)
214214
s1_pname.jobid = strtoul(pmix_id, &str, 10);
215215
s1_pname.jobid = (s1_pname.jobid << 16) & 0xffff0000;
216216
if (NULL != str) {
217-
ui32 = strtoul(str, NULL, 10);
217+
ui32 = strtoul(str+1, NULL, 10);
218218
s1_pname.jobid |= (ui32 & 0x0000ffff);
219219
}
220220
ldr.jobid = s1_pname.jobid;

opal/mca/pmix/s2/pmix_s2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
66
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All
77
* rights reserved.
8-
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
8+
* Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
99
* Copyright (c) 2014-2016 Research Organization for Information Science
1010
* and Technology (RIST). All rights reserved.
1111
* $COPYRIGHT$
@@ -222,7 +222,7 @@ static int s2_init(void)
222222
s2_pname.jobid = strtoul(pmix_kvs_name, &str, 10);
223223
s2_pname.jobid = (s2_pname.jobid << 16) & 0xffff0000;
224224
if (NULL != str) {
225-
stepid = strtoul(str, NULL, 10);
225+
stepid = strtoul(str+1, NULL, 10);
226226
s2_pname.jobid |= (stepid & 0x0000ffff);
227227
}
228228
s2_pname.vpid = s2_rank;

0 commit comments

Comments
 (0)