[Commits] defs.h 1.9.2.59 1.9.2.60
mones at claws-mail.org
mones at claws-mail.org
Sat Oct 6 22:15:33 CEST 2012
Update of /home/claws-mail/claws/src/common
In directory srv:/tmp/cvs-serv23066/src/common
Modified Files:
Tag: gtk2
defs.h
Log Message:
2012-10-06 [mones] 3.8.1cvs85
* po/POTFILES.in
Added src/gtk/menu.c
* src/common/defs.h
* src/gtk/menu.c
* src/gtk/menu.h
New function cm_menu_item_new_label_from_url to
avoid crashing on huge URL strings and warn user
about the possible causes
* src/mainwindow.c
Use it to create List menu items safely
Index: defs.h
===================================================================
RCS file: /home/claws-mail/claws/src/common/defs.h,v
retrieving revision 1.9.2.59
retrieving revision 1.9.2.60
diff -u -d -r1.9.2.59 -r1.9.2.60
--- defs.h 8 Sep 2012 20:23:12 -0000 1.9.2.59
+++ defs.h 6 Oct 2012 20:15:30 -0000 1.9.2.60
@@ -174,6 +174,9 @@
#define VSPACING_NARROW_2 2
#define VBOX_BORDER 8
#define DEFAULT_ENTRY_WIDTH 80
+/* labels bigger than this causes crash with the X Window System error:
+ 'BadAlloc (insufficient resources for operation)' */
+#define MAX_MENU_LABEL_LENGTH 5453
#define BOLD_FONT prefs_common.boldfont
#define NORMAL_FONT prefs_common.normalfont
More information about the Commits
mailing list