]> diplodocus.org Git - nmh/blob - sbr/seq_setcur.c
Fix invalid pointer arithmetic.
[nmh] / sbr / seq_setcur.c
1 /* seq_setcur.c -- set the current message ("cur" sequence) for a folder
2 *
3 * This code is Copyright (c) 2002, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information.
6 */
7
8 #include <h/mh.h>
9
10
11 void
12 seq_setcur (struct msgs *mp, int msgnum)
13 {
14 /*
15 * Just call seq_addmsg() to update the
16 * "cur" sequence.
17 */
18 seq_addmsg (mp, current, msgnum, -1, 1);
19 }