fixed hydra

master
Evgeniy Kozhuhovskiy 19 years ago
parent 0adfb9e2e0
commit eca6a40ade

@ -1,3 +1,8 @@
2005-09-03 Evgeniy Kozhuhovskiy <e.kozhuhovskiy@gmail.com>
* bforce/prot_hydra.c: added patch to fix problems while sending
files from ?lo on hydra, by anray
2005-06-23 Evgeniy Kozhuhovskiy <e.kozhuhovskiy@gmail.com>
* bforce/prot_emsi.c (sm_rx_waitseq): reviewed code for buggy-emsi option

@ -1030,7 +1030,7 @@ static int hydra_parse_init(s_hydrainfo *hi, char *pkt, size_t pktlen)
/*
* Get other's Hydra revision time stamp
*/
sscanf(pkt, "%08lx", &revtime);
sscanf(pkt, "%08lx", (unsigned long *)&revtime);
/*
* Get other's application info
@ -1638,7 +1638,7 @@ int hydra_batch(s_hydrainfo *hi, s_protinfo *pi)
/* Get file modification time and size */
sscanf(hi->ibuf, "%08lx%08x%*08x%*08x%*08x",
&modtime, &filesize);
(unsigned long *)&modtime, &filesize);
/* Convert local time -> UTC */
modtime = localtogmt(modtime);

Loading…
Cancel
Save