API: tweaks

This commit is contained in:
David Anderson 2013-05-21 10:26:15 -07:00
parent 225dc6534a
commit 553abb040f
1 changed files with 2 additions and 2 deletions

View File

@ -821,7 +821,7 @@ int boinc_report_app_status_aux(
double _bytes_sent, double _bytes_sent,
double _bytes_received double _bytes_received
) { ) {
char msg_buf[MSG_CHANNEL_SIZE], buf[256]; char msg_buf[MSG_CHANNEL_SIZE], buf[1024];
if (standalone) return 0; if (standalone) return 0;
sprintf(msg_buf, sprintf(msg_buf,
@ -931,7 +931,7 @@ static void handle_upload_file_status() {
); );
continue; continue;
} }
p = fgets(buf, 256, f); p = fgets(buf, sizeof(buf), f);
fclose(f); fclose(f);
if (p && parse_int(buf, "<status>", status)) { if (p && parse_int(buf, "<status>", status)) {
UPLOAD_FILE_STATUS uf; UPLOAD_FILE_STATUS uf;