/* strlen_ok() - Check to see if packet size matches strlen of the string we want to populate. Returns 1 for valid length or 0 for failure.  */
static int strlen_ok(vpd_packet_t *packet, unsigned long length)
/* strlen_ok() - Check to see if packet size matches strlen of the string we want to populate. Returns 1 for valid length or 0 for failure.  */
static int strlen_ok(vpd_packet_t *packet, unsigned long length)
{
    if (packet->size >= length) {
	printf("VPD Packet 0x%x corrupt.\n", packet->identifier);
	return 0;
    }
    return 1;
}