diff -pru dillo/src/html.c dillo.orig/src/html.c
--- dillo/src/html.c	Sun Aug  5 23:11:44 2001
+++ dillo.orig/src/html.c	Sat Aug 11 10:27:48 2001
@@ -1075,11 +1075,11 @@ static void Html_tag_open_table(DilloHtm
    
 #ifdef USE_TABLES
    if (Html_get_attr(tag, tagsize, "border", attrbuf, sizeof(attrbuf)))
-      border = isdigit(attrbuf[0]) ? atoi (attrbuf) : 1;
+      border = isdigit(attrbuf[0]) ? strtol (attrbuf, NULL, 10) : 1;
    if (Html_get_attr(tag, tagsize, "cellspacing", attrbuf, sizeof(attrbuf)))
-      cellspacing = atoi (attrbuf);
+      cellspacing = strtol (attrbuf, NULL, 10);
    if (Html_get_attr(tag, tagsize, "cellpadding", attrbuf, sizeof(attrbuf)))
-      cellpadding = atoi (attrbuf);
+      cellpadding = strtol (attrbuf, NULL, 10);
 
    /* The style for the table */
    style_attrs = *html->stack[html->stack_top].style;
@@ -1159,9 +1159,9 @@ static void Html_tag_open_table_cell(Dil
    case DILLO_HTML_TABLE_MODE_TD:
       /* todo: check errors? */
       if (Html_get_attr(tag, tagsize, "colspan", attrbuf, sizeof(attrbuf)))
-         colspan = atoi (attrbuf);
+         colspan = strtol (attrbuf, NULL, 10);
       if (Html_get_attr(tag, tagsize, "rowspan", attrbuf, sizeof(attrbuf)))
-         rowspan = atoi (attrbuf);
+         rowspan = strtol (attrbuf, NULL, 10);
 
       /* text style */
       old_style = html->stack[html->stack_top].style;
@@ -1481,7 +1481,7 @@ static void Html_tag_open_img(DilloHtml 
    if (html->stack[html->stack_top].style->link != -1 || usemap_url != NULL) {
       /* Images within links */
       if(Html_get_attr(tag, tagsize, "border", border_str, sizeof(border_str)))
-         border = atoi (border_str);
+         border = strtol (border_str, NULL, 10);
       else
          border = 1;
 
@@ -1810,7 +1810,7 @@ static void Html_tag_open_ol(DilloHtml *
    }
 
    if ( Html_get_attr(tag, tagsize, "start", tmp, sizeof(tmp)) )
-      html->stack[html->stack_top].list_number = atoi(tmp);
+      html->stack[html->stack_top].list_number = strtol(tmp, NULL, 10);
    else
       html->stack[html->stack_top].list_number = 1;
 }
@@ -1833,7 +1833,7 @@ static void Html_tag_open_li(DilloHtml *
    a_Dw_page_parbreak(page, 1);
 
    if ( Html_get_attr(tag, tagsize, "value", tmp, sizeof(tmp)) )
-      html->stack[html->stack_top].list_number = atoi(tmp);
+      html->stack[html->stack_top].list_number = strtol(tmp, NULL, 10);
 
    if( html->stack[html->stack_top].list_number ){
       /* ORDERED LIST */
@@ -2555,12 +2555,12 @@ static void Html_tag_open_input(DilloHtm
 
          /* Set width of the entry */
          if (Html_get_attr(tag, tagsize, "size", tmp, sizeof(tmp)))
-            gtk_widget_set_usize(widget, atoi(tmp) * 
+            gtk_widget_set_usize(widget, strtol(tmp, NULL, 10) * 
                                  gdk_char_width(widget->style->font, '0'), 0);
 
          /* Maximum length of the text in the entry */
          if (Html_get_attr(tag, tagsize, "maxlength", tmp, sizeof(tmp)))
-            gtk_entry_set_max_length(GTK_ENTRY(widget), atoi(tmp));
+            gtk_entry_set_max_length(GTK_ENTRY(widget), strtol(tmp, NULL, 10));
       }
       gtk_widget_show(widget);
 
@@ -2683,10 +2683,10 @@ static void Html_tag_open_textarea(Dillo
 
    cols = 20;
    if(Html_get_attr(tag, tagsize, "cols", tmp, sizeof(tmp)))
-      cols = atoi(tmp);
+      cols = strtol(tmp, NULL, 10);
    rows = 10;
    if(Html_get_attr(tag, tagsize, "rows", tmp, sizeof(tmp)))
-      rows = atoi(tmp);
+      rows = strtol(tmp, NULL, 10);
    name = NULL;
    if(Html_get_attr(tag, tagsize, "name", name_str, sizeof(name_str)))
       name = g_strdup(name_str);
@@ -2760,7 +2760,7 @@ static void Html_tag_open_select(DilloHt
       name = name_str;
    size = 1;
    if (Html_get_attr(tag, tagsize, "size", size_str, sizeof(size_str)))
-      size = atoi(size_str);
+      size = strtol(size_str, NULL, 10);
    if (size < 1)
       size = 1;
 

