mirror of
https://git.sr.ht/~sircmpwn/gmni
synced 2024-11-29 21:11:35 +01:00
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".
This commit is contained in:
parent
b0ef37a5c0
commit
8c623936de
@ -189,7 +189,7 @@ main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
input_mode = INPUT_READ;
|
input_mode = INPUT_READ;
|
||||||
input_source = fmemopen(optarg, strlen(optarg), "r");
|
input_source = fmemopen(optarg, strlen(optarg) + 1, "r");
|
||||||
break;
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
input_mode = INPUT_READ;
|
input_mode = INPUT_READ;
|
||||||
|
Loading…
Reference in New Issue
Block a user