From d0eefbbd2438d7af188d41a46e42abea909ded9b Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Thu, 16 Jan 2003 00:33:50 +0000 Subject: [PATCH] win cli compilation fix svn path=/trunk/boinc/; revision=814 --- client/win/win_main.cpp | 9 +++++++++ win_build/boinc_cli/boinc_cli.dsp | 17 +++++++++++++---- win_build/boinc_gui/boinc_gui.dsp | 2 +- win_build/test_net_xfer/test_net_xfer.dsp | 1 + win_build/upper_case/upper_case.dsp | 1 + 5 files changed, 25 insertions(+), 5 deletions(-) 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