From e80ce80a98e6517e7c3d486376cdeb2ba3a8b53a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Mar 2007 23:48:29 +0000 Subject: Default form field maxlength to UINT_MAX (fixes 1620540) svn path=/trunk/netsurf/; revision=3205 --- render/form.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'render/form.c') diff --git a/render/form.c b/render/form.c index 4adf7bef7..28b428eb7 100644 --- a/render/form.c +++ b/render/form.c @@ -14,6 +14,7 @@ #define _GNU_SOURCE /* for strndup */ #include #include +#include #include #include #include @@ -83,7 +84,8 @@ struct form_control *form_new_control(form_control_type type) control->caret_inline_container = NULL; control->caret_text_box = NULL; control->caret_box_offset = control->caret_form_offset = 0; - control->length = control->maxlength = 0; + control->length = 0; + control->maxlength = UINT_MAX; control->selected = false; control->prev = NULL; control->next = NULL; -- cgit v1.2.3