]> andersk Git - openssh.git/blobdiff - sftp-server.c
- djm@cvs.openbsd.org 2006/03/25 01:13:23
[openssh.git] / sftp-server.c
index a6add52aa165145d384a4270ceabfab3753bb2fa..52b7323c2b1abc938077bbfb253aace1d0c889b3 100644 (file)
@@ -716,7 +716,7 @@ process_readdir(void)
                while ((dp = readdir(dirp)) != NULL) {
                        if (count >= nstats) {
                                nstats *= 2;
-                               stats = xrealloc(stats, nstats * sizeof(Stat));
+                               stats = xrealloc(stats, nstats, sizeof(Stat));
                        }
 /* XXX OVERFLOW ? */
                        snprintf(pathname, sizeof pathname, "%s%s%s", path,
This page took 0.053317 seconds and 4 git commands to generate.