talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit a44ea1792e33e0554c721d50f3038c4e1e20ed81
parent ca73579c35c3918b41ed93f2f3eeee8951c9f173
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sat, 24 Nov 2018 23:04:52 +0100

Finish buffer overflow fix attempted in e025cbc3b.

Diffstat:
Msrc/plugins/mailmbox/mailmbox.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/mailmbox/mailmbox.c b/src/plugins/mailmbox/mailmbox.c @@ -1263,7 +1263,7 @@ int claws_mailmbox_expunge_no_lock(struct claws_mailmbox_folder * folder) return MAILMBOX_NO_ERROR; } - snprintf(tmpfile, PATH_MAX, "%sXXXXXX", folder->mb_filename); + snprintf(tmpfile, sizeof(tmpfile), "%sXXXXXX", folder->mb_filename); dest_fd = g_mkstemp(tmpfile); if (dest_fd < 0) {