diff options
author | Rocco Rutte <pdmef@gmx.net> | 2009-06-01 11:26:37 +0200 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2009-06-01 11:26:37 +0200 |
commit | 547b25a21660416bfb3ff49e173a9eb469fff779 (patch) | |
tree | 57189703c13f2c8ce953ef23eac697dbfcd10c68 /edit.c | |
parent | 7444e911d87a59834b9e36e3668cc1dfd9905f2b (diff) |
Use strtol() wrappers for most atoi() calls
Diffstat (limited to 'edit.c')
-rw-r--r-- | edit.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -153,8 +153,7 @@ be_include_messages (char *msg, char **buf, int *bufmax, int *buflen, while ((msg = strtok (msg, " ,")) != NULL) { - n = atoi (msg); - if (n > 0 && n <= Context->msgcount) + if (mutt_atoi (msg, &n) == 0 && n > 0 && n <= Context->msgcount) { n--; |