$OpenBSD: patch-libj_jstr_str_trim_c,v 1.1 2015/01/24 12:34:07 dcoppa Exp $

Replace overlapping memcpy with memmove

--- libj/jstr/str_trim.c.orig	Sat Jan 24 13:32:27 2015
+++ libj/jstr/str_trim.c	Sat Jan 24 13:32:45 2015
@@ -47,7 +47,7 @@ char *trim(char *s) {
       SET_LAST_NWS(ws, s);
 
       /* Copy the non-ws characters in <s>. */
-      if(ws.fnws > d) MEMCPY(d, ws.fnws, NWS_SIZE(ws));
+      if(ws.fnws > d) MEMMOVE(d, ws.fnws, NWS_SIZE(ws));
       *(d + NWS_SIZE(ws)) = '\0';
       return(d);
 
