diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-03 07:20:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-12-03 07:20:30 +0000 |
commit | 26619d276c16f03e687ee8981b8a7278db90dc82 (patch) | |
tree | b1187454909c0c89889c61dd1e81d462adf9ee3a /source/client | |
parent | aca003f80e0bf63f88c633f35c29996425bd0c34 (diff) | |
download | samba-26619d276c16f03e687ee8981b8a7278db90dc82.tar.gz samba-26619d276c16f03e687ee8981b8a7278db90dc82.tar.xz samba-26619d276c16f03e687ee8981b8a7278db90dc82.zip |
r4055: fixed more places to use type safe allocation macros
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/client/client.c b/source/client/client.c index e4a7dc7cb5e..dae24ce9278 100644 --- a/source/client/client.c +++ b/source/client/client.c @@ -2593,7 +2593,7 @@ static char **remote_completion(const char *text, int len) if (len >= PATH_MAX) return(NULL); - info.matches = (char **)malloc(sizeof(info.matches[0])*MAX_COMPLETIONS); + info.matches = malloc_array_p(char *, MAX_COMPLETIONS); if (!info.matches) return NULL; info.matches[0] = NULL; @@ -2673,7 +2673,7 @@ static char **completion_fn(const char *text, int start, int end) char **matches; int i, len, samelen = 0, count=1; - matches = (char **)malloc(sizeof(matches[0])*MAX_COMPLETIONS); + matches = malloc_array_p(char *, MAX_COMPLETIONS); if (!matches) return NULL; matches[0] = NULL; |