From a1f3b093d0168d3b24b727136e71d5f437875cb5 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Sat, 6 Aug 2005 21:13:21 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=7203 --- client/gui_rpc_server_ops.C | 20 ++++++-------------- lib/gui_rpc_client_ops.C | 2 +- lib/mfile.C | 2 +- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/client/gui_rpc_server_ops.C b/client/gui_rpc_server_ops.C index 2244cd95e7..b2c40966ab 100644 --- a/client/gui_rpc_server_ops.C +++ b/client/gui_rpc_server_ops.C @@ -565,13 +565,9 @@ static void handle_lookup_google(char*, MIOFILE&) { } static void handle_lookup_google_poll(char*, MIOFILE& fout) { - if (gstate.lookup_google_op.error_num) { - fout.printf("\n"); - fout.printf(" %d\n", gstate.lookup_google_op.error_num); - fout.printf("\n"); - } else { - fout.printf("%s", gstate.lookup_google_op.reply.c_str()); - } + fout.printf("\n"); + fout.printf(" %d\n", gstate.lookup_google_op.error_num); + fout.printf("\n"); } static void handle_lookup_yahoo(char*, MIOFILE&) { @@ -579,13 +575,9 @@ static void handle_lookup_yahoo(char*, MIOFILE&) { } static void handle_lookup_yahoo_poll(char*, MIOFILE& fout) { - if (gstate.lookup_yahoo_op.error_num) { - fout.printf("\n"); - fout.printf(" %d\n", gstate.lookup_yahoo_op.error_num); - fout.printf("\n"); - } else { - fout.printf("%s", gstate.lookup_yahoo_op.reply.c_str()); - } + fout.printf("\n"); + fout.printf(" %d\n", gstate.lookup_yahoo_op.error_num); + fout.printf("\n"); } int GUI_RPC_CONN::handle_rpc() { diff --git a/lib/gui_rpc_client_ops.C b/lib/gui_rpc_client_ops.C index 50f1e3efec..ca780e67a1 100644 --- a/lib/gui_rpc_client_ops.C +++ b/lib/gui_rpc_client_ops.C @@ -869,7 +869,7 @@ int LOOKUP_WEBSITE::parse(MIOFILE& in) { } void LOOKUP_WEBSITE::clear() { - error_num = -1; + error_num = 0; } /////////// END OF PARSING FUNCTIONS. RPCS START HERE //////////////// diff --git a/lib/mfile.C b/lib/mfile.C index 9cd3735f81..76849fc01d 100644 --- a/lib/mfile.C +++ b/lib/mfile.C @@ -56,7 +56,7 @@ int MFILE::open(const char* path, const char* mode) { } int MFILE::vprintf(const char* format, va_list ap) { - char buf2[20000]; + char buf2[65536]; int n, k; k = vsprintf(buf2, format, ap);