From: Debian BOINC Maintainers Date: Tue, 5 Jun 2018 22:03:28 +0000 (+0100) Subject: _fix_fgets_warning X-Git-Tag: archive/raspbian/8.00_svn3725-3+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3ef9ee0bd171e1a743370db0401195dbd48f9c82;p=boinc-app-seti.git _fix_fgets_warning Gbp-Pq: Name 210_fix_fgets_warning.patch --- diff --git a/client/seti_header.cpp b/client/seti_header.cpp index c5014bd..0b106be 100644 --- a/client/seti_header.cpp +++ b/client/seti_header.cpp @@ -195,8 +195,9 @@ SETI_WU_INFO swi; static workunit *wu; int seti_parse_wu_header(FILE* f) { - char buf[256]; + char buf[2560]; int found=0; + buf[0]=0; #ifdef USE_MANUAL_CALLSTACK call_stack.enter("seti_parse_wu_header(FILE *)"); #endif /* USE_MANUAL_CALLSTACK */ @@ -211,13 +212,14 @@ int seti_parse_wu_header(FILE* f) { //swi.fft_len=2048; //swi.ifft_len=8; + char *fgets_return_value; do { - fgets(buf, 256, f); - } while (!feof(f) && !xml_match_tag(buf,"