From 8e8bee99ca11fbe2dacbe67de1b6318c7b3c3e62 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 12 Dec 2010 12:20:10 -0500 Subject: print ? for unknown tokens --- expac.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'expac.c') diff --git a/expac.c b/expac.c index e769df9..7a8104b 100644 --- a/expac.c +++ b/expac.c @@ -463,6 +463,10 @@ static int print_pkg(pmpkg_t *pkg, const char *format) { putchar('%'); out++; break; + default: + putchar('?'); + out++; + break; } FREELIST(list); } else if (*f == '\\') { -- cgit v1.2.3-70-g09d2