This is a cleanup patch, resulting from a quick pass I made
through the source looking for calls to snprintf, GetValue,
memset, fgets, strncmp and strncpy.
I found many instances where a hard-coded value (or even
a reference to MAX_BUFF) could be replaced by a safer
sizeof().
I also noticed some areas where there was a discrepancy
between the assumed size of a character array and its
actual size.
Please review the patch and let me know if you find any
errors in it. It touches a lot of the code, but I feel it's
necessary for making qmailadmin more robust/secure.
the gzipped patch
Logged In: YES
user_id=117662
This patch has been rolled into the 1.0.22 release.