aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-06-02 19:19:36 +0200
committerYang Tse <yangsita@gmail.com>2011-06-02 19:19:36 +0200
commit9eea43dce2442aa63065432738e3ce23046ba05a (patch)
tree914e9c97a458656fa5115e1d3ebee1f453297d34
parent910d7953aa11ac6c0d0334efc21064533fa3c777 (diff)
compiler warning: fix
Fix compiler warning: cast increases required alignment
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 0cf19a882..e9cca1b15 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -4006,14 +4006,14 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
cur_pos = slash_pos + 1; /* jump to the rest of the string */
if(++ftpc->dirdepth >= ftpc->diralloc) {
/* enlarge array */
- char *bigger;
+ char **bigger;
ftpc->diralloc *= 2; /* double the size each time */
bigger = realloc(ftpc->dirs, ftpc->diralloc * sizeof(ftpc->dirs[0]));
if(!bigger) {
freedirs(ftpc);
return CURLE_OUT_OF_MEMORY;
}
- ftpc->dirs = (char **)bigger;
+ ftpc->dirs = bigger;
}
}
}