-/* $Id: html.c,v 1.55 2009/10/03 16:36:06 kristaps Exp $ */
+/* $Id: html.c,v 1.56 2009/10/03 16:37:23 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
va_list ap;
va_start(ap, fmt);
- (void)vsnprintf(h->buf + h->buflen,
+ (void)vsnprintf(h->buf + (int)h->buflen,
BUFSIZ - h->buflen - 1, fmt, ap);
va_end(ap);
h->buflen = strlen(h->buf);
- assert('\0' == h->buf[h->buflen]);
}
(void)strncat(h->buf, p, sz);
h->buflen += sz;
- assert('\0' == h->buf[h->buflen]);
}
pp = h->base_includes;
while ((p = strchr(pp, '%'))) {
- bufncat(h, pp, p - pp);
+ bufncat(h, pp, (size_t)(p - pp));
switch (*(p + 1)) {
case('I'):
bufcat(h, name);
pp = h->base_man;
while ((p = strchr(pp, '%'))) {
- bufncat(h, pp, p - pp);
+ bufncat(h, pp, (size_t)(p - pp));
switch (*(p + 1)) {
case('S'):
bufcat(h, sec);