diff options
author | Kyle Wheeler <kyle@memoryhole.net> | 2008-10-20 09:55:27 -0700 |
---|---|---|
committer | Kyle Wheeler <kyle@memoryhole.net> | 2008-10-20 09:55:27 -0700 |
commit | f745f74a67b3bc2992a8b444280880acc3cb5950 (patch) | |
tree | 0f43e4cbbc215d16d6025ae8dc502a937cc22d76 /imap | |
parent | 70a223a6411be40e643ff9d1ab885c4b8ac4bd51 (diff) |
Fix #3129
Diffstat (limited to 'imap')
-rw-r--r-- | imap/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/imap/util.c b/imap/util.c index 6312b861..ed05356f 100644 --- a/imap/util.c +++ b/imap/util.c @@ -407,7 +407,8 @@ char *imap_fix_path (IMAP_DATA *idata, char *mailbox, char *path, { if (strchr(ImapDelimChars, *mailbox) || *mailbox == delim) { - while (strchr(ImapDelimChars, *mailbox) || *mailbox == delim) + while (*mailbox && + (strchr(ImapDelimChars, *mailbox) || *mailbox == delim)) mailbox++; path[i] = delim; } |