Page MenuHomeFreeBSD

D46012.diff
No OneTemporary

D46012.diff

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

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)

Event Timeline