~sircmpwn/gmni

8c623936deb01a3fefa43fe9d09e3f8d88e372f0 — Sebastian LaVine 2 years ago b0ef37a
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".
1 files changed, 1 insertions(+), 1 deletions(-)

M src/gmni.c
M src/gmni.c => src/gmni.c +1 -1
@@ 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;