Skip to content

Conversation

@orlitzky
Copy link

This fixes the build with CFLAGS="-Werror=incompatible-pointer-types", which some newer compilers are planning to make default.

Gentoo-Bug: https://bugs.gentoo.org/919366

This fixes the build with CFLAGS="-Werror=incompatible-pointer-types",
which some newer compilers are planning to make default.

Gentoo-Bug: https://bugs.gentoo.org/919366
{
strlcpy(addr, conf->conf_defsender, sizeof addr);
status = dkim_mail_parse(addr, &user, &domain);
strlcpy(dkimf_dstring_get(addr), conf->conf_defsender, sizeof addr);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems it should use dkim_dstring_copy() instead of strlcpy().

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, I changed it in an additional commit. Thanks.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed the commit, and it looks good for me. I'm sorry for the typo on function name, and thank you for the commit.

I'll merge this to my branch.

futatuki added a commit to futatuki/OpenDKIM that referenced this pull request Apr 26, 2024
…e-pointer-types

Fix wrong usage of dkimf_string *addr in mlfi_eoh().
futatuki added a commit to futatuki/OpenDKIM that referenced this pull request Apr 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants