/* If the type is bool type, then
* the result is AND of those two value */
- if (len < LANG_MAX || strlen(value_platform) < LANG_MAX || strlen(value_hal) < LANG_MAX)
+ if (len <= LANG_MAX || strlen(value_platform) < LANG_MAX || strlen(value_hal) < LANG_MAX)
return SYSTEM_INFO_ERROR_INVALID_PARAMETER;
for (i = 0; i < LANG_MAX; ++i) {
out[i] = (platform && hal) ? 'T' : 'F';
}
+ for (i = LANG_MAX; i < len; ++i)
+ out[i] = '\0';
+
return SYSTEM_INFO_ERROR_NONE;
}