param: Fix another off by 1 error and a formatting issue.

This commit is contained in:
Stephan Brown 2017-01-04 15:45:02 -08:00 committed by Beat Küng
parent bf57e86dc2
commit 92b2395ff6
2 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@ param_find_internal(const char *name, bool notification)
break;
} else if (ret < 0) {
last = middle - 1;
last = middle;
} else {
front = middle;

View File

@ -351,7 +351,7 @@ do_find(const char *name)
return 1;
}
printf("Found param %s at index %d\n", name, ret);
printf("Found param %s at index %lu\n", name, ret);
return 0;
}