Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong sizeof? #1

Open
rpodgorny opened this issue Jul 14, 2019 · 0 comments
Open

wrong sizeof? #1

rpodgorny opened this issue Jul 14, 2019 · 0 comments

Comments

@rpodgorny
Copy link
Owner

from email:

Hello Radek.
Recently there was a need to use the xotd program (https://github.com/rpodgorny/xotd). Compiled on 64 bit versions.
Found a malnky error:

line 687: nread = sizeof(header);

probably sizeof(*header), because header - the pointer. On 32 bit versions 4 - size of hedaer and poiner, and on 64-bit the header (pointer) 8 size, and *header - 4.

Thanks.
Yours faithfully, Pavel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant