===================================================================
Gbp-Pq: Name 212_increase_buffers.patch
unsigned long nbytes, nsamples,samples_per_byte;
sah_complex *data;
unsigned long i;
- char *p, buf[256];
+ char *p, buf[2560];
sah_complex *bin_data=0;
int retval=0;
FORCE_FRAME_POINTER;
+ buf[0]=0;
nsamples = swi.nsamples;
samples_per_byte=(8/swi.bits_per_sample);
switch(swi.data_type) {
case DATA_ASCII:
for (i=0; i<nsamples; i++) {
- p = fgets(buf, 256, f);
+ p = fgets(buf, sizeof(buf), f);
if (!p) {
SETIERROR(READ_FAILED,"in seti_parse_data");
}
workunit_header header;
int main(int argc, char *argv[]) {
- char *outfile=NULL, buf[256];
+ char *outfile=NULL, buf[2560];
struct stat statbuf;
int nbytes,nread,nsamples;
std::string tmpbuf("");