diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins.c b/src/plugins.c index 10f98f83..3dcef247 100644 --- a/src/plugins.c +++ b/src/plugins.c @@ -95,9 +95,9 @@ plugins_create_click_element(WebKitDOMElement *element, GList *gl) char *left = webkit_dom_css_style_declaration_get_property_value(style, "left"); char *position = webkit_dom_css_style_declaration_get_property_value(style, "position"); int w, h; - if (sscanf(width, "%dpx", &w) == 1 && w<72) + if (*width == '\0' || (sscanf(width, "%dpx", &w) == 1 && w<72)) w = 72; - if (sscanf(height, "%dpx", &h) == 1 && h<24) + if (*height == '\0' || (sscanf(height, "%dpx", &h) == 1 && h<24)) h = 24; |