From 553abb040fc8ef15ef0152672ba5322f6380d7f8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 21 May 2013 10:26:15 -0700 Subject: [PATCH] API: tweaks --- api/boinc_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index 2b1c9dda28..93430a68f0 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -821,7 +821,7 @@ int boinc_report_app_status_aux( double _bytes_sent, double _bytes_received ) { - char msg_buf[MSG_CHANNEL_SIZE], buf[256]; + char msg_buf[MSG_CHANNEL_SIZE], buf[1024]; if (standalone) return 0; sprintf(msg_buf, @@ -931,7 +931,7 @@ static void handle_upload_file_status() { ); continue; } - p = fgets(buf, 256, f); + p = fgets(buf, sizeof(buf), f); fclose(f); if (p && parse_int(buf, "", status)) { UPLOAD_FILE_STATUS uf;