* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: log.c,v 1.5 2001-02-14 13:52:09 thib Exp $ */
+ /* $Id: log.c,v 1.6 2001-04-21 08:42:33 thib Exp $ */
/* This code is inspired by Anacron's sources of
Itai Tzur <itzur@actcom.co.il> ( thanks to him ) */
* returns when the buffer overflows. Hmmm... */
len = vsnprintf(msg, MAX_MSG + 1, fmt, args);
if (len >= MAX_MSG)
- strcpy(msg + sizeof(msg) - sizeof(truncated), truncated);
+ strcpy(msg + (MAX_MSG + 1) - sizeof(truncated), truncated);
return msg;
}