summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-05-15 22:32:51 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-05-15 22:47:36 -0400
commitfe49b2052be8bb9a270b31a0e68ea317f1d88a1f (patch)
tree4102770c78de8050ccadf29b2657c20d6e311b38 /color.c
parent71464adaaf62c328cc85b16f49c96f482b3b46f6 (diff)
downloadbfs-fe49b2052be8bb9a270b31a0e68ea317f1d88a1f.tar.xz
Add colors to -D tree
Diffstat (limited to 'color.c')
-rw-r--r--color.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/color.c b/color.c
index bdf0d7d..14ae541 100644
--- a/color.c
+++ b/color.c
@@ -484,6 +484,12 @@ int cfprintf(CFILE *cfile, const char *format, ...) {
}
break;
+ case 'd':
+ if (fprintf(file, "%d", va_arg(args, int)) < 0) {
+ goto done;
+ }
+ break;
+
case 's':
if (fputs(va_arg(args, const char *), file) == EOF) {
goto done;