Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101990639
D46006.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
388 B
Referenced Files
None
Subscribers
None
D46006.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D46006: libgeom: Consistently use item count as the first argument to calloc
Attached
Detach File
Event Timeline
Log In to Comment