break;
default:
fprintf(stderr,
- "FATAL dstr_vputf: unknown format specifier `%c'\n", p[-1]);
+ "FATAL vgprintf: unknown format specifier `%c'\n", p[-1]);
abort();
}
if (fs->fmt == fmt_unset) {
switch (fs->ch) {
- case 0: break;
- case '%': ops->putch(out, '%'); break;
- default: abort();
+ case 0:
+ break;
+ case '%':
+ if (ops->putch(out, '%')) return (-1);
+ tot++; break;
+ default:
+ abort();
}
continue;
}
#else
# define MSG "<no float support>"
if (ops->putm(out, MSG, sizeof(MSG) - 1)) return (-1);
- continue;
+ tot += sizeof(MSG) - 1; continue;
# undef MSG
#endif
case 's':