From e371f0c605430a73a52d9da6e9bd4426f3f3d11d Mon Sep 17 00:00:00 2001 From: Rob Latham Date: Thu, 19 Dec 2013 13:01:35 -0600 Subject: [PATCH] more tolerant of whitepace in hintfile If a hintfile contains e.g. cb_buffer_size = 1234, IOR will try to set the hint "cb_buffer_size " (note trailing space), a hint that no MPI implementation actually supports. --- src/utilities.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities.c b/src/utilities.c index 4b159df..9de14f4 100755 --- a/src/utilities.c +++ b/src/utilities.c @@ -202,8 +202,8 @@ void ExtractHint(char *settingVal, char *valueVal, char *hintString) { char *settingPtr, *valuePtr, *tmpPtr1, *tmpPtr2; - settingPtr = (char *)strtok(hintString, "="); - valuePtr = (char *)strtok(NULL, " \t\r\n"); + settingPtr = (char *)strtok(hintString, " ="); + valuePtr = (char *)strtok(NULL, " =\t\r\n"); tmpPtr1 = settingPtr; tmpPtr2 = (char *)strstr(settingPtr, "IOR_HINT__MPI__"); if (tmpPtr1 == tmpPtr2) {