diff src/scanner.cpp @ 29:4dfdf33f1db0 stable-2-4

add syslog msg freeing memory, use bare tld names without leading period
author carl
date Thu, 27 May 2004 16:17:48 -0700
parents 33e1e3910506
children 8f43f8fa1ad7
line wrap: on
line diff
--- a/src/scanner.cpp	Thu May 27 10:08:51 2004 -0700
+++ b/src/scanner.cpp	Thu May 27 16:17:48 2004 -0700
@@ -953,7 +953,7 @@
                         // have two periods, so three components
                         for (int i=1; i<count; i++) pending[i] = tolower(pending[i]);
                         // is last component a tld?
-                        string_set::iterator i = memory->tlds->find(p2);
+                        string_set::iterator i = memory->tlds->find(p2+1);
                         if (i != memory->tlds->end()) memory->new_url((char*)pending);
                     }
                 }