summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2021-03-06 20:09:39 +0000
committerchristos <christos@NetBSD.org>2021-03-06 20:09:39 +0000
commit8695f2267e121fc7086276a4f4e04316a02fdfbc (patch)
tree97681ccfb974f6fcb8377569aa5e898678865335 /libexec
parent4dd5e8fc3b70198fd8b08ae3126950badd3c9618 (diff)
pretend we know about %# and %j...
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/xprintf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/ld.elf_so/xprintf.c b/libexec/ld.elf_so/xprintf.c
index d8af4539c7d..deade624ab8 100644
--- a/libexec/ld.elf_so/xprintf.c
+++ b/libexec/ld.elf_so/xprintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: xprintf.c,v 1.22 2019/12/08 22:41:42 uwe Exp $ */
+/* $NetBSD: xprintf.c,v 1.23 2021/03/06 20:09:39 christos Exp $ */
/*
* Copyright 1996 Matt Thomas <matt@3am-software.com>
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: xprintf.c,v 1.22 2019/12/08 22:41:42 uwe Exp $");
+__RCSID("$NetBSD: xprintf.c,v 1.23 2021/03/06 20:09:39 christos Exp $");
#endif /* not lint */
#include <string.h>
@@ -73,9 +73,11 @@ xvsnprintf(char *buf, size_t buflen, const char *fmt, va_list ap)
prec = va_arg(ap, int);
/* FALLTHROUGH */
case '.':
+ case '#':
fmt++;
goto rflag;
case 'l':
+ case 'j':
size |= SZ_LONG;
fmt++;
goto rflag;