- Update to r53061
[reactos.git] / base / applications / network / nslookup / nslookup.c
index 3e7ce48..fc94274 100644 (file)
@@ -6,13 +6,6 @@
  * COPYRIGHT:   Copyright 2009 Lucas Suggs <lucas.suggs@gmail.com>
  */
 
-#include <windows.h>
-#include <windns.h>
-#include <winsock2.h>
-#include <tchar.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <iphlpapi.h>
 #include "nslookup.h"
 
 STATE   State;
@@ -791,7 +784,7 @@ int main( int argc, char* argv[] )
     RtlZeroMemory( State.DefaultServer, 256 );
     RtlZeroMemory( State.DefaultServerAddress, 16 );
 
-    strncpy( State.root, DEFAULT_ROOT, strlen( DEFAULT_ROOT ) );
+    memcpy( State.root, DEFAULT_ROOT, sizeof(DEFAULT_ROOT) );
 
     /* We don't know how long of a buffer it will want to return. So we'll
        pass an empty one now and let it fail only once, instead of guessing. */