nnrpd/perl.c and nnrpd/python.c store information in buffers without knowing their sizes. The functions called by nnrpd/commands.c (and maybe by other files) need passing the buffer size, instead of having it hard-coded at several places, hoping they keep being the same.
For instance errorstr in CMDauthinfo, of BIG_BUFFER size.
nnrpd/perl.c
andnnrpd/python.c
store information in buffers without knowing their sizes. The functions called bynnrpd/commands.c
(and maybe by other files) need passing the buffer size, instead of having it hard-coded at several places, hoping they keep being the same. For instanceerrorstr
inCMDauthinfo
, ofBIG_BUFFER
size.