faf2c83
Index: tcsh/sh.dol.c
faf2c83
===================================================================
faf2c83
--- tcsh.orig/sh.dol.c
faf2c83
+++ tcsh/sh.dol.c
faf2c83
@@ -485,9 +485,10 @@ Dgetdol(void)
faf2c83
 	    (void) sigrelse(SIGINT);
faf2c83
 #endif /* BSDSIGS */
faf2c83
 	    np = wbuf;
faf2c83
-	    while (force_read(OLDSTD, cbuf + cbp++, 1) == 1) {
faf2c83
+	    while (force_read(OLDSTD, cbuf + cbp, 1) == 1) {
faf2c83
 	        int len;
faf2c83
 
faf2c83
+		cbp++;
faf2c83
 		len = normal_mbtowc(np, cbuf, cbp);
faf2c83
 		if (len == -1) {
faf2c83
 		    reset_mbtowc();