diff options
Diffstat (limited to 'src/FSListCats.c')
-rw-r--r-- | src/FSListCats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FSListCats.c b/src/FSListCats.c index 2bc1393..9fb380c 100644 --- a/src/FSListCats.c +++ b/src/FSListCats.c @@ -97,7 +97,7 @@ FSListCatalogues( && rep.length <= (SIZE_MAX>>2) #endif ) { - clist = FSmalloc(rep.num_catalogues * sizeof(char *)); + clist = FSmallocarray(rep.num_catalogues, sizeof(char *)); rlen = (rep.length << 2) - SIZEOF(fsListCataloguesReply); c = FSmalloc(rlen + 1); |