diff options
| author | Ulf Lilleengen <lulf@FreeBSD.org> | 2008-10-25 10:23:24 +0000 |
|---|---|---|
| committer | Ulf Lilleengen <lulf@FreeBSD.org> | 2008-10-25 10:23:24 +0000 |
| commit | 92854d9d503c5ea24fdd22a470222e32d73a679f (patch) | |
| tree | 9fff4c09f204f2e88837db201af4c7eb8c3c2017 | |
| parent | 3d4e5994945b8a7eb2995061489129af600cfd98 (diff) | |
Notes
| -rw-r--r-- | contrib/csup/proto.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/csup/proto.c b/contrib/csup/proto.c index b8fb2bf85e40..6c387fb53628 100644 --- a/contrib/csup/proto.c +++ b/contrib/csup/proto.c @@ -768,6 +768,7 @@ proto_printf(struct stream *wr, const char *format, ...) va_list ap; char *cp, *s, *attr; ssize_t n; + size_t size; off_t off; int rv, val, ignore; char c; @@ -834,6 +835,11 @@ proto_printf(struct stream *wr, const char *format, ...) rv = proto_escape(wr, attr); free(attr); break; + case 'z': + size = va_arg(ap, size_t); + rv = stream_printf(wr, "%zu", size); + break; + case '%': n = stream_write(wr, "%", 1); if (n == -1) |
