mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Don't assume sizeof(int)==4 in bittorrent
This commit is contained in:
parent
c2a0d3b969
commit
f3bad399e2
1
NEWS
1
NEWS
@ -35,6 +35,7 @@ To be released as 0.11.4.
|
|||||||
* minor bug 461: ensure contrast in blank areas, to keep the cursor visible
|
* minor bug 461: ensure contrast in blank areas, to keep the cursor visible
|
||||||
* minor bug 928: properly display no-break spaces in a UTF-8 document
|
* minor bug 928: properly display no-break spaces in a UTF-8 document
|
||||||
if the terminal uses some other charset
|
if the terminal uses some other charset
|
||||||
|
* minor: don't assume sizeof(int)==4 in bittorrent
|
||||||
* trivial bug 947: document.html.wrap_nbsp also affects text in tables
|
* trivial bug 947: document.html.wrap_nbsp also affects text in tables
|
||||||
* trivial bug 997: fix unlikely stack corruption in active FTP
|
* trivial bug 997: fix unlikely stack corruption in active FTP
|
||||||
* build bug 950: fix ``config/install-sh: No such file or directory''
|
* build bug 950: fix ``config/install-sh: No such file or directory''
|
||||||
|
@ -1098,7 +1098,7 @@ bittorrent_resume_writer(void *data, int fd)
|
|||||||
uint32_t piece;
|
uint32_t piece;
|
||||||
|
|
||||||
memcpy(&metafile.length, data, sizeof(metafile.length));
|
memcpy(&metafile.length, data, sizeof(metafile.length));
|
||||||
metafile.source = (unsigned char *) data + 4;
|
metafile.source = (unsigned char *) data + sizeof(metafile.length);
|
||||||
|
|
||||||
if (parse_bittorrent_metafile(&meta, &metafile) != BITTORRENT_STATE_OK) {
|
if (parse_bittorrent_metafile(&meta, &metafile) != BITTORRENT_STATE_OK) {
|
||||||
done_bittorrent_meta(&meta);
|
done_bittorrent_meta(&meta);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user