micphy: Apply errata workaround for KSZ9031
This fixes ethernet on an olimex a64 board, and should be pulled up
to -11, -10, -9...
Thanks jmcneill for pointing out the problem.
PR port-arm/60193: olimex a64 - no carrier with emac0 ethernet
Fix overlapping strcpy usages
Using overlapping src & dest witgh strcpy is undefined, so anything
like
strcpy(str + N, str + M);
is automatically invalid, regardless of the valuse of N and M.
Change offending usages here to use memmove() instead.
Note: 2 issues: First, there is no (in sntp/compat) anything to deal
with the possibility that memmove() is not available - this should not
be a problem building nbsd, but it might be if any attempt were to be
made to upstream this change (the autoconf machinery to detect memmove()
would be needed, along wth a memmove() implementation).
Second, and more serious here, I haven't been able to get a build to
actually compile this code, so while I believe it is correct, I am unable
to test it. This is intended to fix the sh3 builds on in the releng
daily builds, so we will see what happens. As best I can tell my build
[2 lines not shown]