initialize .img - sent - simple plaintext presentation tool
HTML git clone git://git.suckless.org/sent
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 4ca44387e65a96a93b56ed1491f5f90c5e25d948
DIR parent 3ce84e71700ba35818c7a83630994d765e77599d
HTML Author: Szabolcs Nagy <nsz@port70.net>
Date: Mon, 9 Nov 2015 02:58:26 +0100
initialize .img
without the attached patch ./sent example segfaults here
Diffstat:
M sent.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/sent.c b/sent.c
@@ -394,6 +394,8 @@ void load(FILE *fp)
die("cannot strdup %u bytes:", strlen(buf)+1);
if (slides[i].text[0] == '@')
slides[i].img = pngopen(slides[i].text + 1);
+ else
+ slides[i].img = 0;
i++;
}
if (slides)