bp=strlen(buff);
assert(bp < MESSAGE_BUFLEN);
vsnprintf(buff+bp,MESSAGE_BUFLEN-bp,message,args);
+ buff[sizeof(buff)-2] = '\n';
+ buff[sizeof(buff)-1] = '\0';
/* Each line is sent separately */
while ((nlp=strchr(buff,'\n'))) {
*nlp=0;
{
assert(loc.file);
if (ferror(f)) {
- Message(M_FATAL, "error reading config file (%s): %s",
+ Message(M_FATAL, "error reading config file (%s): %s\n",
loc.file, strerror(errno));
exit(current_phase);
} else if (feof(f)) {
- Message(M_FATAL, "unexpected end of config file (%s)", loc.file);
+ Message(M_FATAL, "unexpected end of config file (%s)\n", loc.file);
exit(current_phase);
}
}