summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/kat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/kat.c b/src/kat.c
index 399e466..8a0fe59 100644
--- a/src/kat.c
+++ b/src/kat.c
@@ -44,11 +44,7 @@ static void process(const char *fname) {
exit(1);
}
- if (map->sb.st_size >= 0) {
- for (size_t i = 0; i < (size_t)map->sb.st_size; i++) {
- putchar(map->addr[i]);
- }
- }
+ fwrite(map->addr, 1, map->sb.st_size, stdout);
close_map(map);
}