|
1 | 1 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ |
2 | 2 | /* |
3 | 3 | * Copyright (c) 2014-2017 Intel, Inc. All rights reserved. |
4 | | - * Copyright (c) 2014-2017 Research Organization for Information Science |
| 4 | + * Copyright (c) 2014-2018 Research Organization for Information Science |
5 | 5 | * and Technology (RIST). All rights reserved. |
6 | 6 | * Copyright (c) 2014-2015 Mellanox Technologies, Inc. |
7 | 7 | * All rights reserved. |
@@ -711,7 +711,7 @@ int pmix1_lookup(opal_list_t *data, opal_list_t *info) |
711 | 711 | PMIX_INFO_CREATE(pinfo, ninfo); |
712 | 712 | n=0; |
713 | 713 | OPAL_LIST_FOREACH(iptr, info, opal_value_t) { |
714 | | - (void)strncpy(pinfo[n++].key, iptr->key, PMIX_MAX_KEYLEN); |
| 714 | + (void)strncpy(pinfo[n].key, iptr->key, PMIX_MAX_KEYLEN); |
715 | 715 | pmix1_value_load(&pinfo[n].value, iptr); |
716 | 716 | ++n; |
717 | 717 | } |
@@ -881,7 +881,7 @@ int pmix1_unpublish(char **keys, opal_list_t *info) |
881 | 881 | PMIX_INFO_CREATE(pinfo, ninfo); |
882 | 882 | n=0; |
883 | 883 | OPAL_LIST_FOREACH(iptr, info, opal_value_t) { |
884 | | - (void)strncpy(pinfo[n++].key, iptr->key, PMIX_MAX_KEYLEN); |
| 884 | + (void)strncpy(pinfo[n].key, iptr->key, PMIX_MAX_KEYLEN); |
885 | 885 | pmix1_value_load(&pinfo[n].value, iptr); |
886 | 886 | ++n; |
887 | 887 | } |
|
0 commit comments