catpoint

Catpoint simple presenting software.
git clone git://r-36.net/catpoint
Log | Files | Refs | LICENSE

commit e8f0e9f302546f8844785b2674f9c3fd4fc6a4b2
parent dda57f5fe894543b4ccbb5f0aee5302adfdbb5b0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 29 May 2021 17:51:18 +0200

on mmap failure show on which file it failed

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
catpoint.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catpoint.c b/catpoint.c @@ -53,7 +53,7 @@ loadcurrentslide(char **argv, int slide) err(1, "fstat: %s", slidefiles[slide]); currentslidep = mmap(NULL, statbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0); if (currentslidep == MAP_FAILED) - err(1, "mmap"); + err(1, "mmap: %s", slidefiles[slide]); currentslidelen = statbuf.st_size; close(fd); }