[PATCH 1/3] Fix the type of the option array element.
As long as all pointers are of the same size (as usual), this doesn't
make a difference.
Signed-off-by: Ferenc Wagner <wferi@niif.hu>
---
packages/netcfg/dhcp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/packages/netcfg/dhcp.c b/packages/netcfg/dhcp.c
index f7ffa00..f706c5c 100644
--- a/packages/netcfg/dhcp.c
+++ b/packages/netcfg/dhcp.c
@@ -205,7 +205,7 @@ int start_dhcp_client (struct debconfclient *client, char* dhostname)
params: 5
hostname: 2
NULL: 1 */
- arguments = malloc((options_count * 2 + 5 + 2 + 1) * sizeof(char **));
+ arguments = malloc((options_count * 2 + 5 + 2 + 1) * sizeof(char *));
/* set the command options */
options_count = 0;
--
1.7.2.3
Reply to: