AxWin3 - Fixed overflow caused by using width in height calculations
[tpg/acess2.git] / Usermode / Applications / dhcpclient_src / main.c
index 7295788..8831cd6 100644 (file)
@@ -6,6 +6,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 #include <net.h>
 
 #define FILENAME_MAX   255
@@ -170,7 +171,7 @@ void Scan_Dir(tInterface **IfaceList, const char *Directory)
                fprintf(stderr, "Unable to open directory '%s'\n", Directory);
        }
 
-       while( readdir(dp, filename) )
+       while( SysReadDir(dp, filename) )
        {
                if( filename[0] == '.' )        continue ;              
                if( strcmp(filename, "lo") == 0 )       continue ;

UCC git Repository :: git.ucc.asn.au