Hi, I'd like to get rid of static buffers with arbitrary limits for parsing file, e.g. the authorized_keys file with options. What about switching to getline(3) as suggested by Gerhard? -m
Markus Friedl wrote:> I'd like to get rid of static buffers with arbitrary limits for > parsing file, e.g. the authorized_keys file with options.Personally I prefer less dynamic allocation and larger static buffers.> What about switching to getline(3) as suggested by Gerhard?If dynamic that's a great solution. //Peter
On Tue, 24 Apr 2018, Markus Friedl wrote:> Hi, > > I'd like to get rid of static buffers with arbitrary limits for parsing > file, e.g. the authorized_keys file with options. > What about switching to getline(3) as suggested by Gerhard?No objection from me. -d