File chemtool-1.6.11-memmove.diff of Package chemtool
--- src-cht/cht-2.5.c
+++ src-cht/cht-2.5.c
@@ -124,7 +124,7 @@
#else
#define LACK_LABS /* Undefine these if your library has these */
-#define LACK_MEMMOVE
+#undef LACK_MEMMOVE
#endif
#endif
@@ -610,7 +610,7 @@
{
register char *dd = (char *)d, *ss = (char *)s;
if (dd < ss || dd - ss >= (int)n) {
-#if defined(bcopy) && defined(memcpy)
+#if defined(bcopy) && defined(memcpy) && !defined(_FORTIFY_SOURCE)
my_memcpy(dd, ss, n);
#else
memcpy(dd, ss, (size_t)n);