<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/df195e0aea5b49d03c149970ddb303bcada0f7d7">https://github.com/macports/macports-legacy-support/commit/df195e0aea5b49d03c149970ddb303bcada0f7d7</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new df195e0 stpncpy: Fix potential header collision with "later" SDK
</span>df195e0 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit df195e0aea5b49d03c149970ddb303bcada0f7d7
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Wed May 1 17:41:57 2024 -0700
<span style='display:block; white-space:pre;color:#404040;'> stpncpy: Fix potential header collision with "later" SDK
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This is one case of the general problem in:
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> https://trac.macports.org/ticket/69867
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This should fix the only known case specifically related to collisions
</span><span style='display:block; white-space:pre;color:#404040;'> with "secure" wrappers. Whether there are other types of SDK
</span><span style='display:block; white-space:pre;color:#404040;'> collisions is TBD.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> Builds and passes tests on 10.4-10.5 ppc, 10.4-10.6 i386, 10.5-10.6
</span><span style='display:block; white-space:pre;color:#404040;'> ppc (i386 Rosetta), 10.5-12.x x86_64, 11.x-14.x arm64.
</span><span style='display:block; white-space:pre;color:#404040;'> Builds test_stpncpy successfully on 10.6 with 10.7 SDK.
</span>---
include/string.h | 1 +
1 file changed, 1 insertion(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/string.h b/include/string.h
</span><span style='display:block; white-space:pre;color:#808080;'>index 68b88b6..cee7177 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/string.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/string.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,6 +27,7 @@
</span> /* stpncpy */
#if __MP_LEGACY_SUPPORT_STPNCPY__
__MP__BEGIN_DECLS
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#undef stpncpy /* In case built with later SDK */
</span> extern char *stpncpy(char *dst, const char *src, size_t n);
__MP__END_DECLS
#endif
</pre><pre style='margin:0'>
</pre>