Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix max length of node description (ibnetdiscover and smpquery)
Both utilities truncate node description up to 63 bytes instead 64 bytes. Node description fields declared as char array of IB_SMP_DATA_SIZE bytes. Last character for compatibility with c-string set to zero. In this case node description will be truncated from 64 bytes to 63 bytes. Size of node description fields was enlarged to the IB_SMP_DATA_SIZE + 1 bytes for using last character for zero char without truncated node description Signed-off-by: Gregory Linschitz <[email protected]>
- Loading branch information