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

Missing include of string.h for memset in spf_utils.c #41

Open
pjfordham opened this issue Jan 6, 2023 · 1 comment
Open

Missing include of string.h for memset in spf_utils.c #41

pjfordham opened this issue Jan 6, 2023 · 1 comment

Comments

@pjfordham
Copy link

No description provided.

@pjfordham
Copy link
Author

found as part of https://fedoraproject.org/wiki/Toolchain/PortingToModernC effort.

Fixed with following patch:

diff --git a/src/libspf2/spf_utils.c b/src/libspf2/spf_utils.c
index 54878fa..892cea5 100644
--- a/src/libspf2/spf_utils.c
+++ b/src/libspf2/spf_utils.c
@@ -25,6 +25,9 @@
#include <memory.h>
#endif

+#ifdef HAVE_STRING_H
+# include <string.h> /* memset */
+#endif

#include "spf.h"

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