Formerly ../dirent/scandir.c.~3~
[kopensolaris-gnu/glibc.git] / dirent / scandir.c
index 5e5e701..ddc76f0 100644 (file)
@@ -67,7 +67,7 @@ DEFUN(scandir, (dir, namelist, select, cmp),
        if (v[i] == NULL)
          goto lose;
 
-       v[i++] = *d;
+       *v[i++] = *d;
       }
 
   if (errno != 0)