Sisyphus repository
Last update: 17 october 2019 | SRPMs: 17500 | Visits: 15287957
en ru br
ALT Linux repos
S:0.9-alt3
5.0: 0.9-alt1
4.1: 0.9-alt1
4.0: 0.9-ipl8mdk.2
3.0: 0.9-ipl8mdk

Group :: Networking/Other
RPM: urlview

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: urlview-0.9-cr.patch
Download


diff -ruN urlview-0.9.orig/urlview.c urlview-0.9/urlview.c
--- urlview-0.9.orig/urlview.c	2000-07-04 14:14:30 +0400
+++ urlview-0.9/urlview.c	2007-05-07 17:42:23 +0400
@@ -327,6 +327,11 @@
 	url[urlcount] = malloc (len + 1);
 	memcpy (url[urlcount], buf + match.rm_so + offset, len);
 	url[urlcount][len] = 0;
+
+	char* t = url[urlcount] + len - 1;
+	while (t >= url[urlcount] && (*t == ' ' || *t == '\n' || *t == '\t')) 
+	  *t--='\0';
+
 	for (urlcheck=0; urlcheck < urlcount; urlcheck++)
 	{
 	  if(strcasecmp(url[urlcount],url[urlcheck])==0)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin