protocols.c: Added a maxlength to snprintf() calls and defined it as 80