File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
15
15
* Copyright (c) 2012-2017 Los Alamos National Security, LLC. All rights
16
16
* reserved.
17
- * Copyright (c) 2015-2017 Research Organization for Information Science
18
- * and Technology (RIST). All rights reserved.
17
+ * Copyright (c) 2015-2020 Research Organization for Information Science
18
+ * and Technology (RIST). All rights reserved.
19
19
* Copyright (c) 2016-2018 IBM Corporation. All rights reserved.
20
20
* Copyright (c) 2017-2020 Intel, Inc. All rights reserved.
21
21
* $COPYRIGHT$
@@ -359,13 +359,13 @@ opal_str_to_bool(char *str)
359
359
char * ptr ;
360
360
361
361
/* Trim whitespace */
362
- ptr = str + sizeof (str ) - 1 ;
362
+ ptr = str + strlen (str ) - 1 ;
363
363
while (ptr >= str && isspace (* ptr )) {
364
364
* ptr = '\0' ;
365
365
-- ptr ;
366
366
}
367
367
ptr = str ;
368
- while (ptr < str + sizeof (str ) - 1 && * ptr != '\0' &&
368
+ while (ptr < str + strlen (str ) - 1 && * ptr != '\0' &&
369
369
isspace (* ptr )) {
370
370
++ ptr ;
371
371
}
You can’t perform that action at this time.
0 commit comments