diff lwlib/lwlib-utils.c @ 7423:4a5d0d109242

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Mon, 09 May 1994 23:08:26 +0000
parents 4870efc489ea
children bdf8b696b76a
line wrap: on
line diff
--- a/lwlib/lwlib-utils.c	Mon May 09 22:54:09 1994 +0000
+++ b/lwlib/lwlib-utils.c	Mon May 09 23:08:26 1994 +0000
@@ -17,11 +17,6 @@
 along with GNU Emacs; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <memory.h>
-
 #include <X11/Xatom.h>
 #include <X11/IntrinsicP.h>
 #include <X11/ObjectP.h>
@@ -68,7 +63,7 @@
       int nkids = cw->composite.num_children;
       Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids);
       int i;
-      memcpy (kids, cw->composite.children, sizeof (Widget) * nkids);
+      bcopy (cw->composite.children, kids, sizeof (Widget) * nkids);
       for (i = 0; i < nkids; i++)
 /* This prevent us from using gadgets, why is it here? */
 /*	if (XtIsWidget (kids [i])) */