summaryrefslogtreecommitdiff
path: root/gcc/config/darwin-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/darwin-driver.c')
-rw-r--r--gcc/config/darwin-driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/darwin-driver.c b/gcc/config/darwin-driver.c
index 099226c25d3..1123aa37c43 100644
--- a/gcc/config/darwin-driver.c
+++ b/gcc/config/darwin-driver.c
@@ -76,7 +76,7 @@ darwin_default_min_version (unsigned int *decoded_options_count,
generate_option (OPT_mmacosx_version_min_, macosx_deployment_target,
1, CL_DRIVER, &(*decoded_options)[1]);
memcpy (*decoded_options + 2, argv + 1,
- (argc - 1) * sizeof (struct cl_decoded_option *));
+ (argc - 1) * sizeof (struct cl_decoded_option));
return;
}
}
@@ -128,7 +128,7 @@ darwin_default_min_version (unsigned int *decoded_options_count,
generate_option (OPT_mmacosx_version_min_, new_flag,
1, CL_DRIVER, &(*decoded_options)[1]);
memcpy (*decoded_options + 2, argv + 1,
- (argc - 1) * sizeof (struct cl_decoded_option *));
+ (argc - 1) * sizeof (struct cl_decoded_option));
return;
parse_failed: