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

(-)mailx-8.1.2-0.20050715cvs.orig.orig/def.h (-1 / +1 lines)
Lines 97-103 Link Here
97
 * Given a file address, determine the block number it represents.
97
 * Given a file address, determine the block number it represents.
98
 */
98
 */
99
#define blockof(off)			((int) ((off) / 4096))
99
#define blockof(off)			((int) ((off) / 4096))
100
#define offsetof(off)			((int) ((off) % 4096))
100
#define offsetofmailx(off)			((int) ((off) % 4096))
101
#define positionof(block, offset)	((off_t)(block) * 4096 + (offset))
101
#define positionof(block, offset)	((off_t)(block) * 4096 + (offset))
102
102
103
/*
103
/*
(-)mailx-8.1.2-0.20050715cvs.orig.orig/edit.c (-1 / +1 lines)
Lines 111-117 Link Here
111
			(void)fseek(otf, 0L, 2);
111
			(void)fseek(otf, 0L, 2);
112
			size = ftell(otf);
112
			size = ftell(otf);
113
			mp->m_block = blockof(size);
113
			mp->m_block = blockof(size);
114
			mp->m_offset = offsetof(size);
114
			mp->m_offset = offsetofmailx(size);
115
			mp->m_size = fsize(fp);
115
			mp->m_size = fsize(fp);
116
			mp->m_lines = 0;
116
			mp->m_lines = 0;
117
			mp->m_flag |= MODIFY;
117
			mp->m_flag |= MODIFY;
(-)mailx-8.1.2-0.20050715cvs.orig.orig/fio.c (-1 / +1 lines)
Lines 139-145 Link Here
139
			this.m_size = 0;
139
			this.m_size = 0;
140
			this.m_lines = 0;
140
			this.m_lines = 0;
141
			this.m_block = blockof(offset);
141
			this.m_block = blockof(offset);
142
			this.m_offset = offsetof(offset);
142
			this.m_offset = offsetofmailx(offset);
143
			inhead = 1;
143
			inhead = 1;
144
		} else if (linebuf[0] == 0) {
144
		} else if (linebuf[0] == 0) {
145
			inhead = 0;
145
			inhead = 0;

Return to bug 310493