From be8c46fcefee7528d3a25171b1a189e1ae111337 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 14 Feb 2001 01:37:36 +0000 Subject: Update. * locale/programs/ld-paper.c (paper_output): Pretty printing. * sysdeps/generic/glob.c: Likewise. Convert results of gl_readdir * sysdeps/generic/utmp_file.c: Use LFS functions and types. --- locale/programs/ld-paper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'locale') diff --git a/locale/programs/ld-paper.c b/locale/programs/ld-paper.c index 776c780..a3b54fd 100644 --- a/locale/programs/ld-paper.c +++ b/locale/programs/ld-paper.c @@ -133,12 +133,12 @@ paper_output (struct localedef_t *locale, struct charmap_t *charmap, iov[cnt].iov_len = sizeof (idx); ++cnt; - idx[cnt - 2] = iov[0].iov_len + iov[1].iov_len; + idx[cnt - 2] = iov[cnt - 2].iov_len + iov[cnt - 1].iov_len; iov[cnt].iov_base = &paper->height; iov[cnt].iov_len = 4; ++cnt; - idx[cnt - 2] = idx[cnt - 3] + iov[cnt - 1].iov_len; + idx[cnt - 2] = idx[cnt - 2] + iov[cnt - 1].iov_len; iov[cnt].iov_base = &paper->width; iov[cnt].iov_len = 4; ++cnt; -- cgit v1.1