From 7ba4ee63478ac2cb2088f9aa1b4b0ca94cd191d9 Mon Sep 17 00:00:00 2001 From: Dan Werthimer Date: Wed, 20 Aug 2003 23:11:15 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2159 --- client/scheduler_op.C | 20 ++++++++++++++++++++ win_build/boinc_gui.dsp | 12 ++++++++++++ 2 files changed, 32 insertions(+) diff --git a/client/scheduler_op.C b/client/scheduler_op.C index 1c8eadf045..d9a8f7f456 100644 --- a/client/scheduler_op.C +++ b/client/scheduler_op.C @@ -240,6 +240,25 @@ int SCHEDULER_OP::init_master_fetch(PROJECT* p) { return 0; } +inline void trim(STRING256& str) +{ + char* last_char = str.text + strlen(str.text); + while (isspace(*(last_char-1)) && last_char > str.text) { + --last_char; + } + *last_char = '\0'; + char *first_char = str.text; + if (isspace(*first_char)) { + while (isspace(*first_char)) + ++first_char; + char* dest = str.text; + while (*first_char) { + *dest++ = *first_char++; + } + *dest = '\0'; + } +} + // parse a master file. // int SCHEDULER_OP::parse_master_file(vector &urls) { @@ -257,6 +276,7 @@ int SCHEDULER_OP::parse_master_file(vector &urls) { project->scheduler_urls.clear(); while (fgets(buf, 256, f)) { if (parse_str(buf, "", str.text, sizeof(str.text))) { + trim(str); urls.push_back(str); } } diff --git a/win_build/boinc_gui.dsp b/win_build/boinc_gui.dsp index 68912188b5..8fdcb5cade 100755 --- a/win_build/boinc_gui.dsp +++ b/win_build/boinc_gui.dsp @@ -482,12 +482,24 @@ SOURCE=..\client\win\res\mess.bmp # End Source File # Begin Source File +SOURCE=..\client\win\res\proj.bmp +# End Source File +# Begin Source File + +SOURCE=..\client\win\res\result.bmp +# End Source File +# Begin Source File + SOURCE=..\client\win\res\small.ico # End Source File # Begin Source File SOURCE=..\client\win\res\smallico.ico # End Source File +# Begin Source File + +SOURCE=..\client\win\res\xfer.bmp +# End Source File # End Group # End Target # End Project