X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=log.c;h=55f1ee125cbfba848002f1c536e8ad89e3bb3247;hb=59230b9b9fc44453f24c6b3cf33a0f4c570a3563;hp=837ed55acf8c9530a2e4d9f4e87feec3b433449e;hpb=7908f2c6b5be419f8f4031876139953d4ee8340d;p=secnet.git 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'))) {