[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-416-g0720268ba
paul at claws-mail.org
paul at claws-mail.org
Thu Feb 24 11:12:45 UTC 2022
The branch, gtk3 has been updated
via 0720268ba69830d41dac9e12043a0f7eb3faa29a (commit)
from 2e7b9fe39726ee786e45ac44d8ad4fbc6d0dcb30 (commit)
Summary of changes:
src/common/utils.h | 8 ++------
src/compose.c | 4 +++-
2 files changed, 5 insertions(+), 7 deletions(-)
- Log -----------------------------------------------------------------
commit 0720268ba69830d41dac9e12043a0f7eb3faa29a
Author: paul <paul at claws-mail.org>
Date: Thu Feb 24 11:12:39 2022 +0000
double the size of MAX_ALLOCA_MEM_SIZE and use standard sizing in alertpanel
diff --git a/src/common/utils.h b/src/common/utils.h
index 5ce8d9580..b1dfc5eae 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -1,6 +1,6 @@
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 The Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 The Claws Mail Team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -95,11 +95,7 @@ typedef gint64 goffset;
} \
}
-/*
-100k of utf-8 text is 51200 utf-8 characters and
-51200 utf-8 characters is at least 28 A4 pages
-*/
-#define MAX_ALLOCA_MEM_SIZE 51200
+#define MAX_ALLOCA_MEM_SIZE 102400
#define Xalloca(ptr, size, iffail) \
{ \
diff --git a/src/compose.c b/src/compose.c
index a1a07f5f9..717bab642 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -10889,7 +10889,9 @@ static void entry_paste_clipboard(Compose *compose, GtkWidget *entry,
glong len = g_utf8_strlen(contents, -1);
if (len > MAX_ALLOCA_MEM_SIZE) {
- alertpanel_error(_("Number of pages '%ld' exceeds limit '%d' for paste.\nAttach as file instead."), (len / 1800), (MAX_ALLOCA_MEM_SIZE / 1800));
+ alertpanel_error(_("Size of pasted text exceeds limit (%dKiB) for paste.\n"
+ "Attach as file instead."),
+ (MAX_ALLOCA_MEM_SIZE / 1024));
return;
}
/* we shouldn't delete the selection when middle-click-pasting, or we
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list