Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101990635
D46012.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
586 B
Referenced Files
None
Subscribers
None
D46012.diff
View Options
diff --git a/usr.sbin/bsdinstall/distfetch/distfetch.c b/usr.sbin/bsdinstall/distfetch/distfetch.c
--- a/usr.sbin/bsdinstall/distfetch/distfetch.c
+++ b/usr.sbin/bsdinstall/distfetch/distfetch.c
@@ -130,8 +130,8 @@
struct bsddialog_conf mgconf;
/* Make the transfer list for mixedgauge */
- minilabel = calloc(sizeof(char *), nfiles);
- miniperc = calloc(sizeof(int), nfiles);
+ minilabel = calloc(nfiles, sizeof(char *));
+ miniperc = calloc(nfiles, sizeof(int));
if (minilabel == NULL || miniperc == NULL)
errx(EXIT_FAILURE, "Error: distfetch minibars out of memory!");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 6:35 AM (11 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14506201
Default Alt Text
D46012.diff (586 B)
Attached To
Mode
D46012: bsdinstall: Consistently use item count as the first argument to calloc
Attached
Detach File
Event Timeline
Log In to Comment