URLs don't truncated now
This commit is contained in:
parent
c8276f8ff6
commit
04a5b89a91
@ -725,14 +725,17 @@ void ReadPeekURLs(GMsg* msg) {
|
|||||||
if(ispunct(end[-1]) and (end[-1] != '/'))
|
if(ispunct(end[-1]) and (end[-1] != '/'))
|
||||||
--end;
|
--end;
|
||||||
if(begin < end) {
|
if(begin < end) {
|
||||||
buf[0] = ' ';
|
char* bufurl=(char*)throw_malloc(end-ptr+3);
|
||||||
strxcpy(buf+1, ptr, MinV((long)((end-ptr)+1), (long)(MAXCOL-2-2-2)));
|
bufurl[0] = ' ';
|
||||||
strcat(buf, " ");
|
strxcpy(bufurl+1, ptr, (end-ptr)+1);
|
||||||
|
strcat(bufurl, " ");
|
||||||
for(i = urls.begin(); i != urls.end(); i++)
|
for(i = urls.begin(); i != urls.end(); i++)
|
||||||
if(strieql(*i, buf))
|
if(strieql(*i, bufurl))
|
||||||
break;
|
break;
|
||||||
if(i == urls.end())
|
if(i == urls.end())
|
||||||
urls.push_back(throw_strdup(buf));
|
urls.push_back(bufurl);
|
||||||
|
else
|
||||||
|
throw_free(bufurl);
|
||||||
ptr = end-1;
|
ptr = end-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user