rem: if (len + 3 + sys_len > sizeof(buf) - 1)
add: if ((size_t) len + 3 + sys_len > sizeof(buf) - 1)
context: void rsyserr(enum logcode code, int errcode, const char *format, ...){	va_list ap;  	char buf[1024];	int len, sys_len;        char *sysmsg;	va_start(ap, format);	len = vsnprintf(buf, sizeof(buf), format, ap);	va_end(ap);	if (len > sizeof(buf)-1) exit_cleanup(RERR_MESSAGEIO);        sysmsg = strerror(errcode);        sys_len = strlen(sysmsg);        if (len + 3 + sys_len > sizeof(buf) - 1)                exit_cleanup(RERR_MESSAGEIO);        strcpy(buf + len, ": ");        len += 2;        strcpy(buf + len, sysmsg);        len += sys_len;        strcpy(buf + len, "\n");        len++;	rwrite(code, buf, len);}