diff options
author | Kevin McCarthy <kevin@8t8.us> | 2021-07-17 15:34:41 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2021-07-17 15:34:41 -0700 |
commit | 1588a0782438226e5fac7d59ae5cb5cc126b9888 (patch) | |
tree | 775d541425f93558d2a101311891dd3cd108e10d /listmenu.c | |
parent | df727efb43e751b9d089784c9c55fb6a083b25e2 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |