Commit 3e53db21df4287b43a46ad27fc2fac56b9194ffc

Giuseppe Scrivano 2010-08-28T16:12:37

read-file: Avoid memory reallocations with regular files. * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>. (fread_file): With regular files, use the remaining length as the initial buffer size. Check against overflow. * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint, sys_stat.