OSDN Git Service

fix a warning
authorJochen Tucht <jtuc@users.sourceforge.net>
Sun, 13 Jun 2010 15:22:21 +0000 (15:22 +0000)
committerJochen Tucht <jtuc@users.sourceforge.net>
Sun, 13 Jun 2010 15:22:21 +0000 (15:22 +0000)
Src/diffutils/src/DIRENT.C

index 4b35f90..51bc5a2 100644 (file)
@@ -324,7 +324,7 @@ loadDir(DIRENT *dir)
                        if ( ff.ff_name[0] != '.' )
                        {
                                /*  make a copy of the name  */
-                               if ( (names[count] = strdup(ff.ff_name))
+                               if ( (names[count] = _strdup(ff.ff_name))
                                                                     == NULL )
                                {
                                        /*  free all if error (out of mem)  */