~sircmpwn/harec

dfbe788856ffb5dff00557ead418de7642a933e1 — Sebastian 1 year, 27 days ago ec2a43a
main: set path name to "<stdin>" when arg is "-"

Signed-off-by: Sebastian <sebastian@sebsite.pw>
1 files changed, 1 insertions(+), 0 deletions(-)

M src/main.c
M src/main.c => src/main.c +1 -0
@@ 140,6 140,7 @@ main(int argc, char *argv[])
		const char *path = argv[optind + i];
		if (strcmp(path, "-") == 0) {
			in = stdin;
			sources[i + 1] = "<stdin>";
		} else {
			in = fopen(path, "r");
			struct stat buf;