diff --git a/client/win/win_main.cpp b/client/win/win_main.cpp index 006c55e244..76f80f6d58 100644 --- a/client/win/win_main.cpp +++ b/client/win/win_main.cpp @@ -39,6 +39,9 @@ int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR Args, int WinMod // uh, why did MS have to "improve" on char*? + // possible buffer overrun fix by asmall_uk + argc = min(100,argc); + for (i=0; i