Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37866436
en ru br
ALT Linux repos
S:6.20.00-alt4
5.0: 6.16.00-alt1
4.1: 6.16.00-alt0.M41.1
4.0: 6.14.00-alt2
3.0: 6.14.00-alt1

Group :: Shells
RPM: tcsh

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: tcsh-6.14.00-read.patch
Download


Index: tcsh/sh.dol.c
===================================================================
--- tcsh.orig/sh.dol.c
+++ tcsh/sh.dol.c
@@ -485,9 +485,10 @@ Dgetdol(void)
 	    (void) sigrelse(SIGINT);
 #endif /* BSDSIGS */
 	    np = wbuf;
-	    while (force_read(OLDSTD, cbuf + cbp++, 1) == 1) {
+	    while (force_read(OLDSTD, cbuf + cbp, 1) == 1) {
 	        int len;
 
+		cbp++;
 		len = normal_mbtowc(np, cbuf, cbp);
 		if (len == -1) {
 		    reset_mbtowc();
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin