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

[BUG] A char is treated as a pointer in _NvdDialogBox #56

Open
rj45 opened this issue May 20, 2024 · 1 comment
Open

[BUG] A char is treated as a pointer in _NvdDialogBox #56

rj45 opened this issue May 20, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers todo To be worked on

Comments

@rj45
Copy link

rj45 commented May 20, 2024

char *msg;
char *content;
char *accept_label, reject_label;

These three lines should be const char *, and reject_label is only a char wide, it's missing the * to make it a pointer. Setting the field will cause compiler errors/warnings and/or overwrite the padding/other fields of the struct.

Fixing is not urgent, I have the fixes in my local copy. Just thought you would want to know about it.

If you want these bug reports as PRs instead, let me know. Also let me know if you want one big PR or several small ones.

@rj45 rj45 added the bug Something isn't working label May 20, 2024
@tseli0s
Copy link
Owner

tseli0s commented May 23, 2024

These three lines should be const char *

Not necessarily, I avoid it because of unnecessary warnings related to modifying const pointers. Yeah I could disable the warnings but maybe they'll come in handy somewhere else.

Also let me know if you want one big PR or several small ones.

small ones are always better for organization, in case one PR does something it shouldn't do we can reverse it without reversing the rest

@tseli0s tseli0s added good first issue Good for newcomers todo To be worked on labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers todo To be worked on
Projects
None yet
Development

No branches or pull requests

2 participants