rx-packet-version-not-all-kernels-have-snprintf-20010721

linux kernel for instance has no snprintf
This commit is contained in:
Garry Zacheiss 2001-07-21 08:07:51 +00:00 committed by Derrick Brashear
parent b8b4b6c03c
commit b23084cd8b

View File

@ -1407,7 +1407,7 @@ struct rx_packet *rxi_ReceiveVersionPacket(ap, asocket, ahost, aport, istack)
ap->header.flags = ap->header.flags & ~RX_CLIENT_INITIATED; ap->header.flags = ap->header.flags & ~RX_CLIENT_INITIATED;
rxi_EncodePacketHeader(ap); rxi_EncodePacketHeader(ap);
bzero(buf, sizeof(buf)); bzero(buf, sizeof(buf));
snprintf(buf, sizeof(buf), "%s", cml_version_number+4); strncpy(buf, cml_version_number+4, sizeof(buf)-1);
rx_packetwrite(ap, 0, 65, buf); rx_packetwrite(ap, 0, 65, buf);
tl = ap->length; tl = ap->length;
ap->length = 65; ap->length = 65;