[project @ 2006-01-25 23:12:36 by jmb]

Fix buffer overflow

svn path=/import/netsurf/; revision=2044
This commit is contained in:
John Mark Bell 2006-01-25 23:12:36 +00:00
parent b5fcb4d94c
commit 5fdc462c1d

View File

@ -238,7 +238,7 @@ void ro_gui_configure_register(const char *window,
}
tool->name = window;
tool->translated = messages_get(window);
tool->validation = malloc(strlen(window) + 1);
tool->validation = malloc(strlen(window) + 2);
if (!tool->validation) {
LOG(("Insufficient memory for malloc()"));
die("Insufficient memory");