cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit b7c63e3e10ff2318e97c1a8f1e74e5632e2e6ca9
parent 1f8c45ce3f7f20c040cd24ab8be13d2c0898929c
Author: Sebastian LaVine <mail@smlavine.com>
Date:   Wed, 20 Apr 2022 16:05:18 -0400

gmni: fix -d truncation

Previously, the last character of the provided input would not be read.
For example, `gmni -d termfmt gemini://godocs.io/-/search` would search
for "termfm".

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

diff --git a/src/gmni.c b/src/gmni.c @@ -189,7 +189,7 @@ main(int argc, char *argv[]) break; case 'd': input_mode = INPUT_READ; - input_source = fmemopen(optarg, strlen(optarg), "r"); + input_source = fmemopen(optarg, strlen(optarg) + 1, "r"); break; case 'D': input_mode = INPUT_READ;