google code search found invalid memset in eds.

Andreas Henriksson <[email protected]> Wed, 22 Nov 2006 20:17:28 +0100
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
Trivial patch attached to fix up order of memset arguments, found by
google code search.

Regards,
Andreas Henriksson

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
eds-memset.diff (text/x-patch, 327 B)
Found by google code search....

--- libdb/hash/hash_open.c.orig	2006-11-22 19:37:50.000000000 +0100
+++ libdb/hash/hash_open.c	2006-11-22 19:38:03.000000000 +0100
@@ -409,7 +409,7 @@
 			goto err;
 	} else {
 #ifdef DIAGNOSTIC
-		memset(buf, dbp->pgsize, 0);
+		memset(buf, 0, dbp->pgsize);
 #endif
 		page = (PAGE *)buf;
 	}