Fossil SCM

Fix a bug in the IP address truncator. Ticket [a09798ba9e].

drh 2009-12-29 20:52 trunk
Commit 5d16ca43f192395100f17bb86006b824ceb5547c
1 file changed +1 -1
+1 -1
--- src/login.c
+++ src/login.c
@@ -93,11 +93,11 @@
9393
if( zIP[i]=='.' ){
9494
j++;
9595
if( j==2 ) break;
9696
}
9797
}
98
- return mprintf("%.*s", j, zIP);
98
+ return mprintf("%.*s", i, zIP);
9999
}
100100
101101
102102
/*
103103
** Check to see if the anonymous login is valid. If it is valid, return
104104
--- src/login.c
+++ src/login.c
@@ -93,11 +93,11 @@
93 if( zIP[i]=='.' ){
94 j++;
95 if( j==2 ) break;
96 }
97 }
98 return mprintf("%.*s", j, zIP);
99 }
100
101
102 /*
103 ** Check to see if the anonymous login is valid. If it is valid, return
104
--- src/login.c
+++ src/login.c
@@ -93,11 +93,11 @@
93 if( zIP[i]=='.' ){
94 j++;
95 if( j==2 ) break;
96 }
97 }
98 return mprintf("%.*s", i, zIP);
99 }
100
101
102 /*
103 ** Check to see if the anonymous login is valid. If it is valid, return
104

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button