Skip to content

Commit

Permalink
increase input buffer size to have enough space for mailbox uniqueid …
Browse files Browse the repository at this point in the history
…(when mailbox name approaches maximum length)
  • Loading branch information
ksmurchison committed Oct 2, 2008
1 parent 2fdf7ee commit 1857f63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions imap/make_md5.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Id: make_md5.c,v 1.7 2008/03/24 17:09:17 murch Exp $
* $Id: make_md5.c,v 1.8 2008/10/02 14:05:44 murch Exp $
*/

#include <config.h>
Expand Down Expand Up @@ -378,7 +378,7 @@ md5_mailbox_list_read(struct md5_mailbox_list *list, char *name)
{
struct md5_mailbox *current = NULL;
FILE *file;
char buf[MAX_MAILBOX_NAME+2];
char buf[MAX_MAILBOX_NAME+18]; /* mboxname + uniqueid(16) + SP + CR */
unsigned char md5_msg[16];
unsigned char md5_cache[16];
int len;
Expand Down
4 changes: 2 additions & 2 deletions imap/make_sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Id: make_sha1.c,v 1.3 2008/03/24 17:09:17 murch Exp $
* $Id: make_sha1.c,v 1.4 2008/10/02 14:05:44 murch Exp $
*/

#include <config.h>
Expand Down Expand Up @@ -381,7 +381,7 @@ sha1_mailbox_list_read(struct sha1_mailbox_list *list, char *name)
{
struct sha1_mailbox *current = NULL;
FILE *file;
char buf[MAX_MAILBOX_NAME+2];
char buf[MAX_MAILBOX_NAME+18]; /* mboxname + uniqueid(16) + SP + CR */
unsigned char sha1_msg[20];
unsigned char sha1_cache[20];
int len;
Expand Down

0 comments on commit 1857f63

Please sign in to comment.