Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 444838 | Differences between
and this patch

Collapse All | Expand All

(-)bsd-finger-0.17/finger/lprint.c.old (+2 lines)
Lines 330-335 Link Here
330
static int
330
static int
331
show_text(const char *directory, const char *file_name, const char *header)
331
show_text(const char *directory, const char *file_name, const char *header)
332
{
332
{
333
	int is_printing_project = strcmp(file_name, _PATH_PROJECT);
333
	int ch, lastc = 0, fd;
334
	int ch, lastc = 0, fd;
334
	FILE *fp;
335
	FILE *fp;
335
	struct stat sbuf1, sbuf2;
336
	struct stat sbuf1, sbuf2;
Lines 350-355 Link Here
350
351
351
	xprintf("%s", header);
352
	xprintf("%s", header);
352
	while ((ch = getc(fp)) != EOF) {
353
	while ((ch = getc(fp)) != EOF) {
354
		if (is_printing_project == 0 && ch == '\n') break;
353
		xputc(ch);
355
		xputc(ch);
354
		lastc = ch;
356
		lastc = ch;
355
	}
357
	}

Return to bug 444838