git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@625 c06c8d41-db1a-0410-9941-cceddc491573
2EF3QUVPUQAKBTZKLKQ5B73Z26TXX2H2G2MKIMXD7B7BSDCYE7SAC
if (length)
read2(file, buf, length);
buf[length] = 0;
return std::string(buf);
if (length > 0)
{
if (length <= STR_CAP)
{
char buf[STR_CAP + 1];
read2(file, buf, length);
buf[length] = 0;
return (buf);
}
fprintf(stderr, "String too long: %d bytes\n", length);
end(1);
}
return ("");