mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
rx-packet-version-not-all-kernels-have-snprintf-20010721
linux kernel for instance has no snprintf
This commit is contained in:
parent
b8b4b6c03c
commit
b23084cd8b
@ -1407,7 +1407,7 @@ struct rx_packet *rxi_ReceiveVersionPacket(ap, asocket, ahost, aport, istack)
|
||||
ap->header.flags = ap->header.flags & ~RX_CLIENT_INITIATED;
|
||||
rxi_EncodePacketHeader(ap);
|
||||
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);
|
||||
tl = ap->length;
|
||||
ap->length = 65;
|
||||
|
Loading…
Reference in New Issue
Block a user