[evolution-patches] google code search found invalid memset in eds.
- From: Andreas Henriksson <andreas fatal se>
- To: evolution-patches gnome org
- Subject: [evolution-patches] google code search found invalid memset in eds.
- Date: Wed, 22 Nov 2006 20:17:28 +0100
Trivial patch attached to fix up order of memset arguments, found by
google code search.
Regards,
Andreas Henriksson
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]