Page MenuHomeFreeBSD

D46006.diff
No OneTemporary

D46006.diff

diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c
--- a/lib/libgeom/geom_xml2tree.c
+++ b/lib/libgeom/geom_xml2tree.c
@@ -407,7 +407,7 @@
free(mt);
return (error);
}
- gmp->lg_ident = calloc(sizeof *gmp->lg_ident, mt->nident + 1);
+ gmp->lg_ident = calloc(mt->nident + 1, sizeof(*gmp->lg_ident));
free(mt);
if (gmp->lg_ident == NULL)
return (ENOMEM);

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 6:35 AM (10 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14506203
Default Alt Text
D46006.diff (388 B)

Event Timeline