]> andersk Git - openssh.git/blobdiff - sftp-server.c
- djm@cvs.openbsd.org 2006/03/25 00:05:41
[openssh.git] / sftp-server.c
index cf3458120ec7ee56e51cad49a1a17e7e5230f682..a6add52aa165145d384a4270ceabfab3753bb2fa 100644 (file)
@@ -712,7 +712,7 @@ process_readdir(void)
                Stat *stats;
                int nstats = 10, count = 0, i;
 
-               stats = xmalloc(nstats * sizeof(Stat));
+               stats = xcalloc(nstats, sizeof(Stat));
                while ((dp = readdir(dirp)) != NULL) {
                        if (count >= nstats) {
                                nstats *= 2;
This page took 0.033135 seconds and 4 git commands to generate.