From 41788e7e8d8757415a448d3964cb8c8de0345650 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 20 Jul 2005 10:26:47 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=6697 --- checkin_notes | 5 +++++ lib/parse.C | 2 +- zip/boinc_zip.cpp | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 8f8a2f1493..1ad98436e9 100755 --- a/checkin_notes +++ b/checkin_notes @@ -9290,6 +9290,11 @@ David 20 July 2005 David 20 July 2005 - commented out some test code from upper_case.C This seemed to break test_uc.py + - compile fix in zip apps/ upper_case.C + lib/ + parse.C + zip/ + boinc_zip.cpp diff --git a/lib/parse.C b/lib/parse.C index f5c35c9075..ac57a6f223 100644 --- a/lib/parse.C +++ b/lib/parse.C @@ -131,7 +131,7 @@ void parse_attr(const char* buf, const char* name, char* dest, int len) { char* p, *q; strcpy(dest, ""); - p = strstr((char*)buf, name); + p = strstr(buf, name); if (!p) return; p = strchr(p, '"'); if (!p) return; diff --git a/zip/boinc_zip.cpp b/zip/boinc_zip.cpp index d53b4bc192..4123d0ae37 100644 --- a/zip/boinc_zip.cpp +++ b/zip/boinc_zip.cpp @@ -220,7 +220,7 @@ bool boinc_filelist(const std::string directory, // / is safe on all OS's for CPDN at least // but if they already used \ use that // well they didn't use a backslash so just use a slash - if (strUserDir.find("\\") == -1) + if (strUserDir.find("\\") == string::npos) strUserDir += "/"; else strUserDir += "\\";