summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-12-12 12:20:10 -0500
committerDave Reisner <d@falconindy.com>2010-12-12 12:20:10 -0500
commit8e8bee99ca11fbe2dacbe67de1b6318c7b3c3e62 (patch)
tree2d036f009bed58d1dbd3e06542672df07104f656
parenta971ee49ed668196e7f40fb8267403cbb3e50b62 (diff)
downloadexpac-8e8bee99ca11fbe2dacbe67de1b6318c7b3c3e62.tar.xz
print ? for unknown tokens
-rw-r--r--expac.c4
1 files changed, 4 insertions, 0 deletions
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 == '\\') {