summaryrefslogtreecommitdiff
path: root/ahost.c
diff options
context:
space:
mode:
Diffstat (limited to 'ahost.c')
-rw-r--r--ahost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ahost.c b/ahost.c
index dec66a9..7fbfd64 100644
--- a/ahost.c
+++ b/ahost.c
@@ -88,8 +88,8 @@ int main(int argc, char **argv)
case 's':
optmask |= ARES_OPT_DOMAINS;
options.ndomains++;
- options.domains = realloc(options.domains,
- options.ndomains * sizeof(char *));
+ options.domains = (char **)realloc(options.domains,
+ options.ndomains * sizeof(char *));
options.domains[options.ndomains - 1] = strdup(optarg);
break;
case 't':