summaryrefslogtreecommitdiffstats
path: root/listmenu.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-07-17 15:34:41 -0700
committerKevin McCarthy <kevin@8t8.us>2021-07-17 15:34:41 -0700
commit1588a0782438226e5fac7d59ae5cb5cc126b9888 (patch)
tree775d541425f93558d2a101311891dd3cd108e10d /listmenu.c
parentdf727efb43e751b9d089784c9c55fb6a083b25e2 (diff)
Use SEEK_SET and SEEK_END for fseek/fseeko whence parameter.
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).
Diffstat (limited to 'listmenu.c')
-rw-r--r--listmenu.c2
1 files changed, 1 insertions, 1 deletions
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);