diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/kat.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -23,8 +23,10 @@ int entry_kat(int argc, char **argv) { return 1; } - for (size_t i = 0; i < map->sb.st_size; i++) { - putchar(map->addr[i]); + if (map->sb.st_size >= 0) { + for (size_t i = 0; i < (size_t)map->sb.st_size; i++) { + putchar(map->addr[i]); + } } close_map(map); |