Fix gcc 4.0 warnings.

diff --git a/programs/wcmd/builtins.c b/programs/wcmd/builtins.c
index a8a54c5..0d1a259 100644
--- a/programs/wcmd/builtins.c
+++ b/programs/wcmd/builtins.c
@@ -69,8 +69,8 @@
   if (GetConsoleScreenBufferInfo(hStdOut, &consoleInfo))
   {
       COORD topLeft;
-      long screenSize;
-      
+      DWORD screenSize;
+
       screenSize = consoleInfo.dwSize.X * (consoleInfo.dwSize.Y + 1);
 
       topLeft.X = 0;