Re: URL_REGEXP and URLs ending with ')'
Urs Janßen <[email protected]> Mon, 21 Apr 2014 11:57:09 +0200
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Apr 20, 2014 at 09:30:36PM +0200, Dennis Preiser wrote: > On Sun, Apr 20, 2014 at 01:16:46PM +0200, Martin Klaiber wrote: > > This would be a nice solution. But the main problem is IMHO that it is > > not possible to add characters manually when editing the URL because > > tin seems to limit the length of the URL-string to the original length > > without the ")". > > You are right, this is a fixed length and not a dynamic one. It would be > possible to increase the length by a fixed amount. or a danamic one like len = strlen(lptr->url) << 1; > But what would be a reasonable value: length of the URL + 1 or + 2 or + 5 or + 10 ... as the memory is freed ASAP there is no need to be that minimalistic, something like + 20 should cover most cases (who will add 20 extra chars to an url?) urs