is the length of the buffer that will hold the message. It is the application programmer's responsibility to ensure that both buflen and buf are large enough to accommodate any error or warning text that the application might generate during program execution. If the buffer is too small, the message is truncated. System-generated messages, especially those that contain pathnames, can be quite long. A good value for buflen is usually 256.