Cosmetic change: use sizeof(destination) in memcpy.
[become] / src / bcquery.c
index e43d075..ff2948b 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: bcquery.c,v 1.1 1998/04/23 13:20:20 mdw Exp $
+ * $Id: bcquery.c,v 1.2 1998/06/26 10:32:31 mdw Exp $
  *
  * Query and dump Become's configuration file
  *
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------*
  *
  * $Log: bcquery.c,v $
+ * Revision 1.2  1998/06/26 10:32:31  mdw
+ * Cosmetic change: use sizeof(destination) in memcpy.
+ *
  * Revision 1.1  1998/04/23 13:20:20  mdw
  * Added new program to verify and query Become configuration files.
  *
@@ -326,7 +329,7 @@ static qnode *qparse_atom(void)
       if (!h)
        die("unknown host `%s'", optarg);
       q->q_cat = cat_where;
-      memcpy(&q->q_in, h->h_addr, sizeof(struct in_addr));
+      memcpy(&q->q_in, h->h_addr, sizeof(q->q_in));
       nextopt();
       return (q);
     }