改成SHOW_USERIP(y,x) showuserip(y,x)就好了
然后到default.c里面改
char *showuserip(struct userec *user, char *ip)
{
int length=0,out=0,count=0;
while(*ip++)
{length++;
if(*ip=='.') {count++;out=length;}
}
ip=ip-length-1;
*(ip+out+1)='*';
*(ip+out+2)='\0';
if(count==3){
return ip;
}
else return ip;
}
这个代码非常原始,不用strncpy函数
【 在 sxdxsimple (雾里龙虾) 的大作中提到: 】
: 该死...
: ./site/default.h:#define SHOW_USERIP(y,x) x
: ./src/default.h:#define SHOW_USERIP(y,x) x
: ...................
--
修改:sxdxsimple FROM 218.26.243.*
FROM 218.26.243.*