Check-in [5d16ca43f1]
Not logged in
Overview

SHA1 Hash:5d16ca43f192395100f17bb86006b824ceb5547c
Date: 2009-12-29 20:52:27
User: drh
Comment:Fix a bug in the IP address truncator. Ticket a09798ba9e.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/login.c from [c5e94568c7] to [5c91402605].

@@ -93,11 +93,11 @@
     if( zIP[i]=='.' ){
       j++;
       if( j==2 ) break;
     }
   }
-  return mprintf("%.*s", j, zIP);
+  return mprintf("%.*s", i, zIP);
 }
 
 
 /*
 ** Check to see if the anonymous login is valid.  If it is valid, return