b3b4bcf548ce981c06ecb3f54a125447ab32cfe1 braney Mon Mar 14 12:35:20 2022 -0700 fix comment to specify max udc slurp is 256K not 64K diff --git src/lib/udc.c src/lib/udc.c index e6c831a..ce30307 100644 --- src/lib/udc.c +++ src/lib/udc.c @@ -1888,31 +1888,31 @@ if (maxSize != 0 && size > maxSize) errAbort("%s is %lld bytes, but maxSize to udcFileReadAll is %lld", url, (long long)size, (long long)maxSize); char *buf = needLargeMem(size+1); udcMustRead(file, buf, size); buf[size] = 0; // add trailing zero for string processing udcFileClose(&file); if (retSize != NULL) *retSize = size; return buf; } struct lineFile *udcWrapShortLineFile(char *url, char *cacheDir, size_t maxSize) /* Read in entire short (up to maxSize) url into memory and wrap a line file around it. * The cacheDir may be null in which case udcDefaultDir() will be used. If maxSize - * is zero then a default value (currently 64 meg) will be used. */ + * is zero then a default value (currently 256 meg) will be used. */ { if (maxSize == 0) maxSize = 256 * 1024 * 1024; char *buf = udcFileReadAll(url, cacheDir, maxSize, NULL); return lineFileOnString(url, TRUE, buf); } void udcSeekCur(struct udcFile *file, bits64 offset) /* Seek to a particular position in file. */ { file->ios.udc.numSeeks++; file->offset += offset; if (udcCacheEnabled()) ourMustLseek(&file->ios.sparse,file->fdSparse, offset, SEEK_CUR); }