> So I guess I must change BUF and MAXLINELEN. But shouldn't these > defines be ideally at one place?; also they have no comments... :( > Wouldn't it be nice to have the limits mentioned (automatically, say > during compilation process) in the man page? Or, would it be difficult > to get rid of any such limits?
i didn't spend much time looking at the code, but if you really care, i would recommend reading a line-at-a-time into a malloc'd buffer. malloc is slow, but not slow enough to matter. it might be worth fixing, but any such fix shouldn't result in more complicated code, or yet-another constant. - erik
