1 Oct 2010 16:40
teru: r28189 - trunk/apps/plugins
<mailer <at> svn.rockbox.org>
2010-10-01 14:40:28 GMT
2010-10-01 14:40:28 GMT
Date: 2010-10-01 16:40:28 +0200 (Fri, 01 Oct 2010)
New Revision: 28189
Log Message:
text editor: decrease size of extension to reduce stack usage.
this could solve crash in text editor (FS#10078).
Modified:
trunk/apps/plugins/text_editor.c
Modified: trunk/apps/plugins/text_editor.c
===================================================================
--- trunk/apps/plugins/text_editor.c 2010-09-30 13:09:50 UTC (rev 28188)
+++ trunk/apps/plugins/text_editor.c 2010-10-01 14:40:28 UTC (rev 28189)
<at> <at> -410,41 +410,40 <at> <at>
if (edit_colors_file && line_count)
{
char *name = temp_line, *value = NULL;
- char extension[MAX_LINE_LEN];
+ char extension[16];
int color, old_color;
bool temp_changed = false;
+
+ MENUITEM_STRINGLIST(menu, "Edit What?", NULL,
+ "Extension", "Colour");
+
rb->settings_parseline(temp_line, &name, &value);
- if (line_count)
+ rb->strlcpy(extension, name, sizeof(extension));
+ if (value)
(Continue reading)
RSS Feed