Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106181001
D46009.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
353 B
Referenced Files
None
Subscribers
None
D46009.diff
View Options
diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c
--- a/sbin/md5/md5.c
+++ b/sbin/md5/md5.c
@@ -592,7 +592,7 @@
while (argc--)
gnu_check(*argv++);
argc = 0;
- argv = calloc(sizeof(char *), numrecs + 1);
+ argv = calloc(numrecs + 1, sizeof(char *));
for (rec = head; rec != NULL; rec = rec->next) {
argv[argc] = rec->filename;
argc++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 5:44 PM (8 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15616314
Default Alt Text
D46009.diff (353 B)
Attached To
Mode
D46009: md5: Consistently use item count as the first argument to calloc
Attached
Detach File
Event Timeline
Log In to Comment