summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-12-29 16:29:01 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-12-29 16:29:01 +0000
commitff0ca3143049861a2f8b631486c582e0524d94ac (patch)
tree442e429524e7bdddc81ba872e5e1d66437515c81 /mbox.c
parent6dcfd9bfe9a3285f85ce1983038b2a2dcad82da8 (diff)
Use sizeof instead of strlen for some fixed strings.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbox.c b/mbox.c
index ea4c88bb..7ab67a6f 100644
--- a/mbox.c
+++ b/mbox.c
@@ -753,9 +753,9 @@ int mbox_sync_mailbox (CONTEXT *ctx)
* sure we seek to the correct location
*/
if (ctx->magic == M_MMDF)
- offset -= mutt_strlen (MMDF_SEP);
+ offset -= (sizeof MMDF_SEP - 1);
else if (ctx->magic == M_KENDRA)
- offset -= mutt_strlen(KENDRA_SEP);
+ offset -= (sizeof KENDRA_SEP - 1);
/* allocate space for the new offsets */
newOffset = safe_calloc (ctx->msgcount - first, sizeof (struct m_update_t));