X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/7908f2c6b5be419f8f4031876139953d4ee8340d..59230b9b9fc44453f24c6b3cf33a0f4c570a3563:/log.c diff --git a/log.c b/log.c index 837ed55..55f1ee1 100644 --- a/log.c +++ b/log.c @@ -25,6 +25,7 @@ static void vMessage(uint32_t class, const char *message, va_list args) if (secnet_is_daemon) { /* Messages go to the system log interface */ bp=strlen(buff); + assert(bp < MESSAGE_BUFLEN); vsnprintf(buff+bp,MESSAGE_BUFLEN-bp,message,args); /* Each line is sent separately */ while ((nlp=strchr(buff,'\n'))) {