From 1588a0782438226e5fac7d59ae5cb5cc126b9888 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sat, 17 Jul 2021 15:34:41 -0700 Subject: Use SEEK_SET and SEEK_END for fseek/fseeko whence parameter. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Vincent Lefèvre for pointing out the incorrect usage. POSIX does not specify the actual values (although they are evidently commonly in use). --- listmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'listmenu.c') diff --git a/listmenu.c b/listmenu.c index d9044cec..1643f263 100644 --- a/listmenu.c +++ b/listmenu.c @@ -83,7 +83,7 @@ static void parse_list_headers (CONTEXT *ctx, HEADER *hdr, if ((msg = mx_open_message (ctx, hdr->msgno, 1)) != NULL) { - fseeko (msg->fp, hdr->offset, 0); + fseeko (msg->fp, hdr->offset, SEEK_SET); linelen = LONG_STRING; line = safe_malloc (linelen); -- cgit v1.2.3