Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 259472
Collapse All | Expand All

(-)ssmtp.c.orig (-2 / +2 lines)
Lines 1376-1382 Link Here
1376
	ssize_t outbytes = 0;
1376
	ssize_t outbytes = 0;
1377
1377
1378
	va_start(ap, format);
1378
	va_start(ap, format);
1379
	if(vsnprintf(buf, (BUF_SZ - 2), format, ap) == -1) {
1379
	if(vsnprintf(buf, BUF_SZ, format, ap) == -1) {
1380
		die("smtp_write() -- vsnprintf() failed");
1380
		die("smtp_write() -- vsnprintf() failed");
1381
	}
1381
	}
1382
	va_end(ap);
1382
	va_end(ap);
Lines 1643-1649 Link Here
1643
1643
1644
	/* don't hang forever when reading from stdin */
1644
	/* don't hang forever when reading from stdin */
1645
	while(!feof(stdin) && timeout < MEDWAIT) {
1645
	while(!feof(stdin) && timeout < MEDWAIT) {
1646
		if (!fgets(buf, sizeof(buf), stdin)) {
1646
		if (!fgets(buf, sizeof(buf)-2, stdin)) {
1647
			/* if nothing was received, then no transmission
1647
			/* if nothing was received, then no transmission
1648
			 * over smtp should be done */
1648
			 * over smtp should be done */
1649
			sleep(1);
1649
			sleep(1);

Return to bug 259472