summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-30 10:27:25 -0400
committerDave Reisner <dreisner@archlinux.org>2011-07-30 10:27:41 -0400
commitfb8bdc687264eccbff3801145871a4a34099f0e6 (patch)
treeb5251bd79f92fcb1326369d29bea494d1391a751
parent5f1c74cbb008314063e42acd91753afec9b3d24e (diff)
downloadexpac-fb8bdc687264eccbff3801145871a4a34099f0e6.tar.xz
allow null terminators in format string
-rw-r--r--expac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/expac.c b/expac.c
index e08b9f2..b14124a 100644
--- a/expac.c
+++ b/expac.c
@@ -305,6 +305,9 @@ static int print_escaped(const char *delim) {
case 'v':
putchar('\v');
break;
+ case '0':
+ putchar('\0');
+ break;
++out;
}
} else {