Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37841438
en ru br
ALT Linux repositórios
S:633-alt1
5.0: 424-alt3
4.1: 418-alt1
4.0: 394-alt1
3.0: 382-alt2

Group :: Ferramentas de Arquivo
RPM: less

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: less-394-rh-search.patch
Download


--- less-394/line.c.search	2005-12-03 21:20:32.000000000 +0100
+++ less-394/line.c	2006-02-15 11:23:25.308694376 +0100
@@ -1161,6 +1161,14 @@
 				break;
 			}
 		}
+		if (c == '\0')
+		{
+			/* 
+			 * Pretend the line ended here
+			 */
+			new_pos = ch_tell();
+			break;
+		}
 		linebuf[n++] = c;
 		c = ch_forw_get();
 	}
@@ -1237,6 +1245,14 @@
 				*to = *fm;
 			n = size_linebuf - old_size_linebuf;
 		}
+		if (c == '\0')
+		{
+			/*
+			 * Pretend the line ended here
+			 */
+			new_pos = ch_tell() + 1;
+			break;
+		}
 		linebuf[--n] = c;
 	}
 	if (linep != NULL)
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009